

def migrate_up(self, version, with_data=False):
    if with_data:
        check = getattr(self, ('_check_%03d' % version), None)
        if (version not in self._skippable_migrations()):
            self.assertIsNotNone(check, ('DB Migration %i does not have a test. Please add one!' % version))
    exceptions = [267, 278, 280, 292]
    KILO_START = 265
    if ((version >= KILO_START) and (version not in exceptions)):
        banned = ['Table', 'Column']
    else:
        banned = None
    with nova_fixtures.BannedDBSchemaOperations(banned):
        super(NovaMigrationsCheckers, self).migrate_up(version, with_data)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/db/test_migrations.py NovaMigrationsCheckers.migrate_up/original