Skip to content

Commit

Permalink
clear orphaned tables/cols from db
Browse files Browse the repository at this point in the history
  • Loading branch information
xflr6 committed Apr 27, 2015
1 parent bd1624b commit 573833c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions migrations/versions/3845ae1142f3_clean_db_orm_differences.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
"""clean db orm differences
Revision ID: 3845ae1142f3
Revises: 1f1b73a8171
Create Date: 2015-04-27 16:57:04.955000
"""

# revision identifiers, used by Alembic.
revision = '3845ae1142f3'
down_revision = '1f1b73a8171'

import datetime

from alembic import op
import sqlalchemy as sa


def upgrade():
op.drop_table('unitparameterunit')
op.drop_table('unitparameterunit_history')
op.drop_column('feature', 'id')
op.drop_column('feature_history', 'id')


def downgrade():
pass

0 comments on commit 573833c

Please sign in to comment.