diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-05-30 13:22:26 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-05-30 13:22:26 +0100 |
| commit | d90bcd34fcd113e489ca8ad9ab4889a86f38634e (patch) | |
| tree | 0e2b3b679b5a130bf2c5a4f9186ce793363b5d27 /migrations | |
| parent | Move load_data_for_chart to utils (diff) | |
| download | AnnotateChange-d90bcd34fcd113e489ca8ad9ab4889a86f38634e.tar.gz AnnotateChange-d90bcd34fcd113e489ca8ad9ab4889a86f38634e.zip | |
Add database migration for cp_index
This file was missing from git, but should have
been in the repository a long time ago!
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/386d5c61a29b_add_cp_index_column.py | 30 |
1 files changed, 30 insertions, 0 deletions
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 ### |
