Added importing of PCR results.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
"""added pcr info to wastewater subs
|
||||
|
||||
Revision ID: 0ee7ffa026b2
|
||||
Revises: 3d80e4a17a26
|
||||
Create Date: 2023-03-22 14:51:37.871062
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0ee7ffa026b2'
|
||||
down_revision = '3d80e4a17a26'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('_submissions', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('pcr_info', sa.JSON(), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('_submissions', schema=None) as batch_op:
|
||||
batch_op.drop_column('pcr_info')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
@@ -0,0 +1,31 @@
|
||||
"""added pcr info to wastewater samples
|
||||
|
||||
Revision ID: 8adc85dd9b92
|
||||
Revises: 0ee7ffa026b2
|
||||
Create Date: 2023-03-27 13:46:06.173379
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '8adc85dd9b92'
|
||||
down_revision = '0ee7ffa026b2'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('_ww_samples', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('pcr_results', sa.JSON(), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('_ww_samples', schema=None) as batch_op:
|
||||
batch_op.drop_column('pcr_results')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user