Files @ 3761a66b8add
Branch filter:

Location: kallithea/rhodecode/lib/dbmigrate/migrate/versioning/templates/script/default.py_tmpl

Mads Kiilerich
pullrequests: handle the case where no matching revisions are found for either end

Use -1 as default revision - that is the null revision.
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