Added downgrade to initial DB script

This commit is contained in:
2013-10-19 23:08:23 -04:00
parent 6b49f61124
commit 803d1202f6
6 changed files with 10 additions and 138 deletions

View File

@@ -88,4 +88,13 @@ def upgrade():
)
def downgrade():
pass
op.drop_table("drugbank_synonyms")
op.drop_table("drugbank_genericnames")
op.drop_table("drugbank_manufacturers")
op.drop_table("drugbank_packagers")
op.drop_table("drugbank_drug_categories")
op.drop_table("drugbank_categories")
op.drop_table("drugbank_prices")
op.drop_table("drugbank_drugs")
op.drop_table("fda_product_substances")
op.drop_table("fda_products")

View File

@@ -1,22 +0,0 @@
"""create fda_product table
Revision ID: 58f6a99bd6ec
Revises: None
Create Date: 2013-10-19 21:21:03.977000
"""
# revision identifiers, used by Alembic.
revision = '58f6a99bd6ec'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
pass
def downgrade():
pass