-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop TranscriptProteinLink database table
- Loading branch information
1 parent
790f7ba
commit 28b9b1e
Showing
2 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
migrations/versions/10692e9f4836_drop_transcriptproteinlink_table.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,34 @@ | ||
"""Drop TranscriptProteinLink table | ||
Revision ID: 10692e9f4836 | ||
Revises: 1bf1b52f057 | ||
Create Date: 2015-11-09 16:11:50.425722 | ||
""" | ||
|
||
from __future__ import unicode_literals | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '10692e9f4836' | ||
down_revision = u'1bf1b52f057' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('transcript_protein_links') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('transcript_protein_links', | ||
sa.Column('id', sa.INTEGER(), nullable=False), | ||
sa.Column('transcript_accession', sa.VARCHAR(length=20), autoincrement=False, nullable=True), | ||
sa.Column('protein_accession', sa.VARCHAR(length=20), autoincrement=False, nullable=True), | ||
sa.Column('added', postgresql.TIMESTAMP(), autoincrement=False, nullable=True), | ||
sa.PrimaryKeyConstraint('id', name=u'transcript_protein_links_pkey') | ||
) | ||
### end Alembic commands ### |
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