diff options
author | Jan Dittberner <jan@dittberner.info> | 2011-10-29 15:55:24 +0200 |
---|---|---|
committer | Jan Dittberner <jan@dittberner.info> | 2011-10-29 15:55:24 +0200 |
commit | 1367004a17d7b893fc1d3ae45bae849cd0e91f98 (patch) | |
tree | 53a99a2d186c81df02c598216a85dcebf1e66fb3 | |
parent | 324a2c766ddfe2057a535ba839ff10c3b12cef19 (diff) | |
download | sqalchemy-migrate-1367004a17d7b893fc1d3ae45bae849cd0e91f98.tar.gz |
PEP-8 compliant script templates
-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 |