Ejemplo n.º 1
0
 def test_schema_has_column(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertTrue(migration.schema_has_column('foo', 'foo_column'))
Ejemplo n.º 2
0
 def test_schema_has_column_missing_column(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertFalse(migration.schema_has_column(
         'foo', column_name='meh'))
Ejemplo n.º 3
0
 def test_schema_has_column(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertTrue(migration.schema_has_column('foo', 'foo_column'))
Ejemplo n.º 4
0
 def test_schema_has_column_missing_table(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertFalse(migration.schema_has_column('meh', 'meh'))
def ensure_bff1774e749e_migration():
    if not migration.schema_has_column(
            'ncp_node_instance_network_function_mappings', 'status_details'):
        db_bff1774e749e = importutils.import_module(DB_bff1774e749e)
        db_bff1774e749e.upgrade()
def ensure_c460c5682e74_migration():
    if not migration.schema_has_column('nfp_port_infos', 'project_id'):
        db_c460c5682e74 = importutils.import_module(DB_c460c5682e74)
        db_c460c5682e74.upgrade()
def ensure_5239b0a50036_migration():
    if not migration.schema_has_column('gp_l2_policies', 'project_id'):
        db_5239b0a50036 = importutils.import_module(DB_5239b0a50036)
        db_5239b0a50036.upgrade()
def ensure_c460c5682e74_migration():
    if not migration.schema_has_column('nfp_port_infos',
                                       'project_id'):
        db_c460c5682e74 = importutils.import_module(DB_c460c5682e74)
        db_c460c5682e74.upgrade()
def ensure_bff1774e749e_migration():
    if not migration.schema_has_column(
        'ncp_node_instance_network_function_mappings',
            'status_details'):
        db_bff1774e749e = importutils.import_module(DB_bff1774e749e)
        db_bff1774e749e.upgrade()
def ensure_5239b0a50036_migration():
    if not migration.schema_has_column('gp_l2_policies',
                                       'project_id'):
        db_5239b0a50036 = importutils.import_module(DB_5239b0a50036)
        db_5239b0a50036.upgrade()
Ejemplo n.º 11
0
 def test_schema_has_column_missing_table(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertFalse(migration.schema_has_column("meh", "meh"))