def migrate(engine, database, module, **kwargs):
    '''
    Execute the migrations. Pass in kwargs
    '''
    validate_args(engine, database, module)

    options = {
        'direction': kwargs.get('direction', 'up'),
        'fake': kwargs.get('fake', False),
        'force': kwargs.get('force', False),
        'migration': kwargs.get('migration', None),
        'transaction': kwargs.get('transaction', True),
    }

    Migration._meta.database = database
    migrator = DATABASE_MAP[engine](database, module, **options)
    migrator.run()
def migrate ( engine , database , module , ** kwargs ) : validate_args ( engine , database , module ) options = { 'direction' : kwargs . get ( 'direction' , 'up' ) , 'fake' : kwargs . get ( 'fake' , False ) , 'force' : kwargs . get ( 'force' , False ) , 'migration' : kwargs . get ( 'migration' , None ) , 'transaction' : kwargs . get ( 'transaction' , True ) , } Migration . _meta . database = database migrator = DATABASE_MAP [ engine ] ( database , module , ** options ) migrator . run ( )
Execute the migrations. Pass in kwargs