def peewee_moves_cli_proxy(ctx, **kwargs): class ScriptInfo: def __init__(self): self.data = {'manager': None} ctx.obj = ctx.obj or ScriptInfo() ctx.obj.data['manager'] = DatabaseManager(database=persist.get_database(), directory=persist.get_migrations_dir())
def pytest_runtest_setup(): colibris.setup() if persist.is_enabled(): router = Router(persist.get_database(), migrate_dir=persist.get_migrations_dir()) router.run()
def execute(self, options): router = Router(persist.get_database(), migrate_dir=persist.get_migrations_dir()) router.run()
def execute(self, options): router = Router(persist.get_database(), migrate_dir=persist.get_migrations_dir()) router.create(options.name, auto=importlib.import_module( settings.PROJECT_PACKAGE_NAME))
def pytest_runtest_setup(): colibris.setup() if persist.is_enabled(): manager = DatabaseManager(persist.get_database(), directory=persist.get_migrations_dir()) manager.upgrade()