From 1367004a17d7b893fc1d3ae45bae849cd0e91f98 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 29 Oct 2011 15:55:24 +0200 Subject: PEP-8 compliant script templates --- migrate/versioning/templates/script/default.py_tmpl | 6 ++++-- migrate/versioning/templates/script/pylons.py_tmpl | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'migrate') 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 -- cgit v1.2.1