Mercurial > kallithea
view rhodecode/lib/dbmigrate/migrate/versioning/templates/script/pylons.py_tmpl @ 833:9753e0907827 beta
added dbmigrate package, added model changes
moved out upgrade db command to that package
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 Dec 2010 01:54:12 +0100 |
parents | |
children |
line wrap: on
line source
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 pass def downgrade(migrate_engine): # Operations to reverse the above upgrade go here. pass