Skip to content

Commit

Permalink
add alembic migration script for vcf_release col
Browse files Browse the repository at this point in the history
  • Loading branch information
armish committed Aug 31, 2015
1 parent f60581f commit a3ef294
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""vcfs: store inferred ENSEMBL release

This comment has been minimized.

Copy link
@ihodes

ihodes Sep 1, 2015

Member

Maybe something "Add vcf_release to the vcfs table, to store the inferred ENSEMBL release name." instead?

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.

Copy link
@ihodes

ihodes Sep 1, 2015

Member

You can drop both pass here.



def downgrade():
op.drop_column('vcfs', 'vcf_release')
pass

0 comments on commit a3ef294

Please sign in to comment.