Example #1
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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #8
0
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(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)
Example #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)
Example #12
0
File: tasks.py Project: esho/spire
 def run(self, runtime):
     command.branches(self.config)
Example #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)
Example #14
0
File: migrate.py Project: deti/boss
def branches(opt, config):
    command.branches(config, verbose=opt["--verbose"])
Example #15
0
    def branches(self, verbose: bool = False) -> t.Any:
        config = self.configuration.to_alembic_config()

        return command.branches(config, verbose=verbose)
Example #16
0
 def branches(self, verbose=None):
     command.branches(self.config, verbose=verbose)
Example #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)
Example #18
0
def branches(app, verbose=False):
    """Show current branch points"""
    command.branches(app.migrations_config, verbose=verbose)
Example #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)
Example #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)
Example #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)
Example #23
0
def branches(app, *, verbose: 'use more verbose output' = False):
    """Show current branch points."""
    alembic.branches(_get_config(app), verbose=verbose)
Example #24
0
def branches(opt, config):
    command.branches(config, verbose=opt["--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)
Example #26
0
 def branches(self):
     """Show current un-spliced branch points.
     """
     config = self.alembic_config()
     alembic_command.branches(config)
     return True
Example #27
0
def branches(app, *, verbose: 'use more verbose output' = False):
    """Show current branch points."""
    alembic.branches(_get_config(app), verbose=verbose)
Example #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)
Example #29
0
 def run(self, runtime):
     command.branches(self.config)
Example #30
0
 def branches(self, verbose=None):
     command.branches(self.config, verbose=verbose)