fix docs
This commit is contained in:
parent
384f045de8
commit
42ab0ba796
@ -303,10 +303,11 @@ We'll create a new column with a matching change script
|
|||||||
|
|
||||||
def upgrade(migrate_engine):
|
def upgrade(migrate_engine):
|
||||||
model.meta.bind = migrate_engine
|
model.meta.bind = migrate_engine
|
||||||
model.table.data.create()
|
model.table.create()
|
||||||
|
|
||||||
def downgrade(migrate_engine):
|
def downgrade(migrate_engine):
|
||||||
model.meta.bind = migrate_engine
|
model.meta.bind = migrate_engine
|
||||||
model.table.data.drop()
|
model.table.drop()
|
||||||
|
|
||||||
This appears to run fine when upgrading an existing database - but the
|
This appears to run fine when upgrading an existing database - but the
|
||||||
first script's behavior changed! Running all our change scripts on a
|
first script's behavior changed! Running all our change scripts on a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user