Skip to content

Commit

Permalink
🗃️ Add preservation_method migration
Browse files Browse the repository at this point in the history
  • Loading branch information
znatty22 committed Dec 11, 2023
1 parent 24cda4a commit 1b369cc
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""
1.16.0 Add biospecimen.preservation_method
Revision ID: 3b427603af51
Revises: 16e588cc6b85
Create Date: 2023-12-08 15:03:02.945360
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '3b427603af51'
down_revision = '16e588cc6b85'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('biospecimen', sa.Column(
'preservation_method', sa.Text(), nullable=False))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('biospecimen', 'preservation_method')
# ### end Alembic commands ###

0 comments on commit 1b369cc

Please sign in to comment.