Example #1
0
def do_db_goto_version(options, version):
    """Override the database's current migration level"""
    if migration.db_goto_version(options, version):
        msg = ('Jumped to version=%s (without performing intermediate '
            'migrations)') % version
        print (msg)
Example #2
0
 def goto_database_version(version):
     """Override database's current migration level"""
     if not migration.db_goto_version(Command._get_connection_string(),
                                      version):
         raise Exception("Unable to jump to specified version")
Example #3
0
def do_db_goto_version(options, version):
    """Override the database's current migration level"""
    if migration.db_goto_version(options, version):
        msg = ('Jumped to version=%s (without performing intermediate '
            'migrations)') % version
        print msg
Example #4
0
def do_db_goto_version(options, target_version):
    """Override the database's current migration level"""
    if migration.db_goto_version(options['sql_connection'], target_version):
        msg = ('Jumped to version=%s (without performing intermediate '
               'migrations)') % target_version
        print(msg)