From d90bcd34fcd113e489ca8ad9ab4889a86f38634e Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 30 May 2019 13:22:26 +0100 Subject: Add database migration for cp_index This file was missing from git, but should have been in the repository a long time ago! --- .../versions/386d5c61a29b_add_cp_index_column.py | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 migrations/versions/386d5c61a29b_add_cp_index_column.py diff --git a/migrations/versions/386d5c61a29b_add_cp_index_column.py b/migrations/versions/386d5c61a29b_add_cp_index_column.py new file mode 100644 index 0000000..3afa3de --- /dev/null +++ b/migrations/versions/386d5c61a29b_add_cp_index_column.py @@ -0,0 +1,30 @@ +"""Add cp_index column + +Revision ID: 386d5c61a29b +Revises: e58a3596b899 +Create Date: 2019-04-01 15:09:10.901684 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = "386d5c61a29b" +down_revision = "e58a3596b899" +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column( + "annotation", sa.Column("cp_index", sa.INTEGER(), nullable=True) + ) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column("annotation", "cp_index") + # ### end Alembic commands ### -- cgit v1.2.3