示例#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)
 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"])
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)