From e3d34a958ead977f1436ede13cea4548d9c19209 Mon Sep 17 00:00:00 2001 From: ChristianOertlin Date: Thu, 4 Jul 2024 14:50:36 +0200 Subject: [PATCH] fix(col type yield) (#3398) (patch) # Description changes a column type in the illumina sample sequencing metrics table --- .../2024_07_04_b3c2b0eefe3a_fix_yield_type.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 alembic/versions/2024_07_04_b3c2b0eefe3a_fix_yield_type.py diff --git a/alembic/versions/2024_07_04_b3c2b0eefe3a_fix_yield_type.py b/alembic/versions/2024_07_04_b3c2b0eefe3a_fix_yield_type.py new file mode 100644 index 0000000000..881f09a1bd --- /dev/null +++ b/alembic/versions/2024_07_04_b3c2b0eefe3a_fix_yield_type.py @@ -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(), + )