Added importing of PCR results.

This commit is contained in:
Landon Wark
2023-03-28 14:44:13 -05:00
parent d50a9793c7
commit 3c9f095937
16 changed files with 562 additions and 70 deletions

View File

@@ -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 ###