-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description changes a column type in the illumina sample sequencing metrics table
- Loading branch information
1 parent
9e02104
commit e3d34a9
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
alembic/versions/2024_07_04_b3c2b0eefe3a_fix_yield_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
) |