-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
migrations/versions/3845ae1142f3_clean_db_orm_differences.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,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 |