Exemplo n.º 1
0
def main():
    config.parse(sys.argv[1:])
    engines.engine_factory.configure_factory(db_url=CONF.db.connection)
    engine = migrations.MigrationEngine(migrations_path=CONF.path)
    engine.rollback_migration(migration_name=CONF.migration)
Exemplo n.º 2
0
def main():
    config.parse(sys.argv[1:])
    engine = migrations.MigrationEngine(migrations_path=CONF.path)
    engine.new_migration(depends=CONF.depend or [], message=CONF.message)