def branches(directory=None, verbose=False): """Show current branch points""" config = current_app.extensions['migrate'].migrate.get_config(directory) if alembic_version >= (0, 7, 0): command.branches(config, verbose=verbose) else: command.branches(config)
def branches(directory=None, verbose=False): """Show current branch points""" config = _get_config(directory) if alembic_version >= (0, 7, 0): command.branches(config, verbose=verbose) else: command.branches(config)
def branches(context, directory="migrations", verbose=False): """显示当前分支信息""" config = _get_config(directory) if alembic_version >= (0, 7, 0): command.branches(config, verbose=verbose) else: command.branches(config)
def branches(self, directory=None, verbose=False, **kwargs): # pragma: no cover """Show current branch points""" config = _get_config(directory) command.branches(config, verbose=verbose)
def cli_db_branches(verbose): """ Show current branch points. """ alembic_cfg = AlembicConfig("alembic.ini") alembic_cfg.set_main_option("script_location", str(Path() / "db_migrations")) command.branches(config=alembic_cfg, verbose=verbose)
def branches(ctx): """ Show current un-spliced branch points. Usage: branches """ from db.alembic import alembic_config command.branches(alembic_config)
def branches(context, directory='migrations', verbose=False): """Show current branch points""" from app import create_app with create_app().app_context(): config = _get_config(directory) if alembic_version >= (0, 7, 0): command.branches(config, verbose=verbose) else: command.branches(config)
def branches(config, verbose: bool): """Show current branch points.""" bot = Bot(config) directory = os.path.join('yui', 'models', 'migrations') c = Config(os.path.join(directory, 'alembic.ini')) c.set_main_option('script_location', directory) c.set_main_option('sqlalchemy.url', bot.config.DATABASE_URL) c.attributes['Base'] = bot.orm_base command.branches(c, verbose=verbose)
def run(self, runtime): command.branches(self.config)
def branches(directory=None, verbose=False): """Show current branch points""" config = current_app.extensions['migrate'].migrate.get_config(directory) command.branches(config, verbose=verbose)
def branches(opt, config): command.branches(config, verbose=opt["--verbose"])
def branches(self, verbose: bool = False) -> t.Any: config = self.configuration.to_alembic_config() return command.branches(config, verbose=verbose)
def branches(self, verbose=None): command.branches(self.config, verbose=verbose)
def branches(): "Lists revisions that have broken the source tree into two versions representing two independent sets of changes" config = _get_config() command.branches(config)
def branches(app, verbose=False): """Show current branch points""" command.branches(app.migrations_config, verbose=verbose)
def branches(config, verbose=False): """Show current branch points""" if alembic_version >= (0, 7, 0): command.branches(config, verbose=verbose) else: command.branches(config)
def branches(): """ List revision history. """ config = _get_config() return command.branches(config)
def branches(app, *, verbose: 'use more verbose output' = False): """Show current branch points.""" alembic.branches(_get_config(app), verbose=verbose)
def branches(self): """Show current un-spliced branch points. """ config = self.alembic_config() alembic_command.branches(config) return True
def branches(directory=None, verbose=False): """Show current branch points""" config = migrate_manager.migrate_config.migrate.get_config(directory) command.branches(config, verbose=verbose)