Skip to content

Commit

Permalink
fix(col type yield) (#3398) (patch)
Browse files Browse the repository at this point in the history
# Description

changes a column type in the illumina sample sequencing metrics table
  • Loading branch information
ChrOertlin authored Jul 4, 2024
1 parent 9e02104 commit e3d34a9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions alembic/versions/2024_07_04_b3c2b0eefe3a_fix_yield_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""Change the col type from Integer to BigInteger for the yield col in the illumina_sample_sequencing_metrics table.
Revision ID: b3c2b0eefe3a
Revises: 951939f0f9b7
Create Date: 2024-07-04 14:44:26.836450
"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "b3c2b0eefe3a"
down_revision = "951939f0f9b7"
branch_labels = None
depends_on = None


def upgrade():
op.alter_column(
"illumina_sample_sequencing_metrics",
"yield",
type_=sa.BigInteger(),
existing_type=sa.Integer(),
)


def downgrade():
op.alter_column(
"illumina_sample_sequencing_metrics",
"yield",
type_=sa.Integer(),
existing_type=sa.BigInteger(),
)

0 comments on commit e3d34a9

Please sign in to comment.