From 08c1a967ba0e8ad98dad92d4d9536442432bcf33 Mon Sep 17 00:00:00 2001 From: Montana Date: Tue, 4 Jun 2019 16:05:31 -0400 Subject: [PATCH] Add `jedi clin type` column to clin model --- ...29cca1_add_jedi_clin_type_to_clin_table.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 alembic/versions/c19d6129cca1_add_jedi_clin_type_to_clin_table.py diff --git a/alembic/versions/c19d6129cca1_add_jedi_clin_type_to_clin_table.py b/alembic/versions/c19d6129cca1_add_jedi_clin_type_to_clin_table.py new file mode 100644 index 00000000..4b916ea5 --- /dev/null +++ b/alembic/versions/c19d6129cca1_add_jedi_clin_type_to_clin_table.py @@ -0,0 +1,28 @@ +"""add jedi clin type to clin table + +Revision ID: c19d6129cca1 +Revises: 988f8b23fbf6 +Create Date: 2019-06-04 11:30:25.283028 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'c19d6129cca1' +down_revision = '988f8b23fbf6' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('clins', sa.Column('jedi_clin_type', sa.Enum('JEDI_CLIN_1', 'JEDI_CLIN_2', 'JEDI_CLIN_3', 'JEDI_CLIN_4', name='jediclintype', native_enum=False), nullable=False)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('clins', 'jedi_clin_type') + # ### end Alembic commands ###