Python neutron.db.migration.cli.do_alembic_command() Examples

The following are 6 code examples of neutron.db.migration.cli.do_alembic_command(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module neutron.db.migration.cli , or try the search function .
Example #1
Source File: test_migrations.py    From networking-sfc with Apache License 2.0 5 votes vote down vote up
def db_sync(self, engine):
        cfg.CONF.set_override('connection', engine.url, group='database')
        for conf in migration.get_alembic_configs():
            self.alembic_config = conf
            self.alembic_config.neutron_config = cfg.CONF
            migration.do_alembic_command(conf, 'upgrade', 'heads') 
Example #2
Source File: test_migrations_sync.py    From neutron-vpnaas with Apache License 2.0 5 votes vote down vote up
def db_sync(self, engine):
        cfg.CONF.set_override('connection', engine.url, group='database')
        for conf in migration.get_alembic_configs():
            self.alembic_config = conf
            self.alembic_config.neutron_config = cfg.CONF
            migration.do_alembic_command(conf, 'upgrade', 'heads') 
Example #3
Source File: test_migrations.py    From networking-l2gw with Apache License 2.0 5 votes vote down vote up
def db_sync(self, engine):
        cfg.CONF.set_override('connection', engine.url, group='database')
        for conf in migration.get_alembic_configs():
            self.alembic_config = conf
            self.alembic_config.neutron_config = cfg.CONF
            migration.do_alembic_command(conf, 'upgrade', 'heads') 
Example #4
Source File: test_migrations.py    From networking-odl with Apache License 2.0 5 votes vote down vote up
def db_sync(self, engine):
        self.cfg.config(connection=engine.url, group='database')
        for conf in migration.get_alembic_configs():
            self.alembic_config = conf
            self.alembic_config.neutron_config = cfg.CONF
            migration.do_alembic_command(conf, 'upgrade', 'heads') 
Example #5
Source File: test_migrations.py    From networking-midonet with Apache License 2.0 5 votes vote down vote up
def db_sync(self, engine):
        cfg.CONF.set_override('connection', engine.url, group='database')
        for conf in migration.get_alembic_configs():
            self.alembic_config = conf
            self.alembic_config.neutron_config = cfg.CONF
            migration.do_alembic_command(conf, 'upgrade', 'heads') 
Example #6
Source File: test_migrations.py    From networking-bgpvpn with Apache License 2.0 5 votes vote down vote up
def db_sync(self, engine):
        cfg.CONF.set_override('connection', engine.url, group='database')
        for conf in migration.get_alembic_configs():
            self.alembic_config = conf
            self.alembic_config.neutron_config = cfg.CONF
            migration.do_alembic_command(conf, 'upgrade', 'heads')