diff options
-rw-r--r-- | migrate/versioning/templates/script/default.py_tmpl | 6 | ||||
-rw-r--r-- | migrate/versioning/templates/script/pylons.py_tmpl | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/migrate/versioning/templates/script/default.py_tmpl b/migrate/versioning/templates/script/default.py_tmpl index 711899c..58d874b 100644 --- a/migrate/versioning/templates/script/default.py_tmpl +++ b/migrate/versioning/templates/script/default.py_tmpl @@ -1,11 +1,13 @@ from sqlalchemy import * from migrate import * + def upgrade(migrate_engine): - # Upgrade operations go here. Don't create your own engine; bind migrate_engine - # to your metadata + # Upgrade operations go here. Don't create your own engine; bind + # migrate_engine to your metadata pass + def downgrade(migrate_engine): # Operations to reverse the above upgrade go here. pass diff --git a/migrate/versioning/templates/script/pylons.py_tmpl b/migrate/versioning/templates/script/pylons.py_tmpl index 711899c..58d874b 100644 --- a/migrate/versioning/templates/script/pylons.py_tmpl +++ b/migrate/versioning/templates/script/pylons.py_tmpl @@ -1,11 +1,13 @@ from sqlalchemy import * from migrate import * + def upgrade(migrate_engine): - # Upgrade operations go here. Don't create your own engine; bind migrate_engine - # to your metadata + # Upgrade operations go here. Don't create your own engine; bind + # migrate_engine to your metadata pass + def downgrade(migrate_engine): # Operations to reverse the above upgrade go here. pass |