예제 #1
0
파일: __init__.py 프로젝트: Hank02/blog
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)
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
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)
예제 #5
0
 def branches(self,
              directory=None,
              verbose=False,
              **kwargs):  # pragma: no cover
     """Show current branch points"""
     config = _get_config(directory)
     command.branches(config, verbose=verbose)
예제 #6
0
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)
예제 #7
0
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)
예제 #8
0
def branches(ctx):
    """
    Show current un-spliced branch points.
    Usage:
        branches
    """
    from db.alembic import alembic_config

    command.branches(alembic_config)
예제 #9
0
 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)
예제 #10
0
 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)
예제 #11
0
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)
예제 #12
0
파일: tasks.py 프로젝트: esho/spire
 def run(self, runtime):
     command.branches(self.config)
예제 #13
0
def branches(directory=None, verbose=False):
    """Show current branch points"""
    config = current_app.extensions['migrate'].migrate.get_config(directory)
    command.branches(config, verbose=verbose)
예제 #14
0
파일: migrate.py 프로젝트: deti/boss
def branches(opt, config):
    command.branches(config, verbose=opt["--verbose"])
예제 #15
0
    def branches(self, verbose: bool = False) -> t.Any:
        config = self.configuration.to_alembic_config()

        return command.branches(config, verbose=verbose)
예제 #16
0
 def branches(self, verbose=None):
     command.branches(self.config, verbose=verbose)
예제 #17
0
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)
예제 #18
0
def branches(app, verbose=False):
    """Show current branch points"""
    command.branches(app.migrations_config, verbose=verbose)
예제 #19
0
def branches(config, verbose=False):
    """Show current branch points"""
    if alembic_version >= (0, 7, 0):
        command.branches(config, verbose=verbose)
    else:
        command.branches(config)
예제 #20
0
 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 branches():
    """
    List revision history.
    """
    config = _get_config()
    return command.branches(config)
예제 #22
0
def branches(config, verbose=False):
    """Show current branch points"""
    if alembic_version >= (0, 7, 0):
        command.branches(config, verbose=verbose)
    else:
        command.branches(config)
예제 #23
0
def branches(app, *, verbose: 'use more verbose output' = False):
    """Show current branch points."""
    alembic.branches(_get_config(app), verbose=verbose)
예제 #24
0
def branches(opt, config):
    command.branches(config, verbose=opt["--verbose"])
예제 #25
0
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)
예제 #26
0
 def branches(self):
     """Show current un-spliced branch points.
     """
     config = self.alembic_config()
     alembic_command.branches(config)
     return True
예제 #27
0
def branches(app, *, verbose: 'use more verbose output' = False):
    """Show current branch points."""
    alembic.branches(_get_config(app), verbose=verbose)
예제 #28
0
def branches(directory=None, verbose=False):
    """Show current branch points"""
    config = migrate_manager.migrate_config.migrate.get_config(directory)
    command.branches(config, verbose=verbose)
예제 #29
0
 def run(self, runtime):
     command.branches(self.config)
예제 #30
0
 def branches(self, verbose=None):
     command.branches(self.config, verbose=verbose)