-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add alembic migration script for vcf_release col
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
alembic/versions/2c00861f3ff1_vcfs_store_inferred_ensembl_release.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,26 @@ | ||
"""vcfs: store inferred ENSEMBL release | ||
This comment has been minimized.
Sorry, something went wrong. |
||
Revision ID: 2c00861f3ff1 | ||
Revises: | ||
Create Date: 2015-08-31 17:50:09.263094 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '2c00861f3ff1' | ||
down_revision = None | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('vcfs', sa.Column('vcf_release', sa.Integer)) | ||
pass | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
|
||
def downgrade(): | ||
op.drop_column('vcfs', 'vcf_release') | ||
pass |
Maybe something "Add vcf_release to the vcfs table, to store the inferred ENSEMBL release name." instead?