Skip to content

Commit

Permalink
Add columns
Browse files Browse the repository at this point in the history
  • Loading branch information
islean committed Dec 15, 2023
1 parent cf2dca5 commit a09db4f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"""Add concentration for cfdna
Revision ID: 27ec5c4c0380
Revises: b105b426af99
Create Date: 2023-12-15 16:47:19.031328
"""
import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = "27ec5c4c0380"
down_revision = "b105b426af99"
branch_labels = None
depends_on = None


def upgrade():
op.add_column(
table_name="application",
column=sa.Column(
"sample_concentration_minimum_cfdna",
sa.DECIMAL(6, 2),
),
)
op.add_column(
table_name="application",
column=sa.Column(
"sample_concentration_maximum_cfdna",
sa.DECIMAL(6, 2),
),
)


def downgrade():
op.drop_column(table_name="application", column_name="sample_concentration_maximum_cfdna")
op.drop_column(table_name="application", column_name="sample_concentration_minimum_cfdna")
2 changes: 2 additions & 0 deletions cg/store/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class Application(Model):
sample_concentration = Column(types.Text)
sample_concentration_minimum = Column(types.DECIMAL)
sample_concentration_maximum = Column(types.DECIMAL)
sample_concentration_minimum_cfdna = Column(types.DECIMAL)
sample_concentration_maximum_cfdna = Column(types.DECIMAL)
priority_processing = Column(types.Boolean, default=False)
details = Column(types.Text)
limitations = Column(types.Text)
Expand Down

0 comments on commit a09db4f

Please sign in to comment.