summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2011-10-29 15:55:24 +0200
committerJan Dittberner <jan@dittberner.info>2011-10-29 15:55:24 +0200
commit1367004a17d7b893fc1d3ae45bae849cd0e91f98 (patch)
tree53a99a2d186c81df02c598216a85dcebf1e66fb3
parent324a2c766ddfe2057a535ba839ff10c3b12cef19 (diff)
downloadsqalchemy-migrate-1367004a17d7b893fc1d3ae45bae849cd0e91f98.tar.gz
PEP-8 compliant script templates
-rw-r--r--migrate/versioning/templates/script/default.py_tmpl6
-rw-r--r--migrate/versioning/templates/script/pylons.py_tmpl6
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