コード例 #1
0
ファイル: test_migration.py プロジェクト: Raghunanda/neutron
 def test_schema_has_column(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertTrue(migration.schema_has_column('foo', 'foo_column'))
コード例 #2
0
ファイル: test_migration.py プロジェクト: Raghunanda/neutron
 def test_schema_has_column_missing_column(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertFalse(migration.schema_has_column(
         'foo', column_name='meh'))
コード例 #3
0
 def test_schema_has_column(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertTrue(migration.schema_has_column('foo', 'foo_column'))
コード例 #4
0
 def test_schema_has_column_missing_table(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertFalse(migration.schema_has_column('meh', 'meh'))
コード例 #5
0
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()
コード例 #6
0
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()
コード例 #7
0
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()
コード例 #8
0
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()
コード例 #9
0
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()
コード例 #10
0
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()
コード例 #11
0
ファイル: test_migration.py プロジェクト: rajeshmohan/neutron
 def test_schema_has_column_missing_table(self):
     self._prepare_mocked_sqlalchemy_inspector()
     self.assertFalse(migration.schema_has_column("meh", "meh"))