BM Migration 004: Actually drop column
SQLAlchemy-migrate appears to support passing in a Column or a column-name string into `drop_column`. In practice though, only the column-name form actually works. Change-Id: I1bcc28511d652df44f7168fb84c8be7dacd60cfd
This commit is contained in:
@@ -971,3 +971,7 @@ class TestBaremetalMigrations(BaseMigrationTestCase, CommonTestsMixIn):
|
|||||||
def _check_002(self, engine, data):
|
def _check_002(self, engine, data):
|
||||||
self.assertRaises(sqlalchemy.exc.NoSuchTableError,
|
self.assertRaises(sqlalchemy.exc.NoSuchTableError,
|
||||||
get_table, engine, 'bm_deployments')
|
get_table, engine, 'bm_deployments')
|
||||||
|
|
||||||
|
def _post_downgrade_004(self, engine):
|
||||||
|
bm_nodes = get_table(engine, 'bm_nodes')
|
||||||
|
self.assertNotIn(u'instance_name', [c.name for c in bm_nodes.columns])
|
||||||
|
|||||||
Reference in New Issue
Block a user