diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-11 11:34:40 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-11 11:34:40 -0400 |
commit | 623569886392e1d9b7fd77f8bad9ca4cc1fb9563 (patch) | |
tree | edcf2255861aeeb496a25b0402d5a4ff8c9d1b03 /tests/test_mssql.py | |
parent | 77a6c827bf5556cfbc84b624ac2439f72a358e74 (diff) | |
download | alembic-623569886392e1d9b7fd77f8bad9ca4cc1fb9563.tar.gz |
- Fixed bug where the mssql DROP COLUMN directive failed to include
modifiers such as "schema" when emitting the DDL.
fixes #284
Diffstat (limited to 'tests/test_mssql.py')
-rw-r--r-- | tests/test_mssql.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_mssql.py b/tests/test_mssql.py index 04fc4d4..19453b2 100644 --- a/tests/test_mssql.py +++ b/tests/test_mssql.py @@ -116,6 +116,11 @@ class OpTest(TestBase): op.alter_column("t", "c", server_default=False) context.assert_() + def test_drop_column_w_schema(self): + context = op_fixture('mssql') + op.drop_column('t1', 'c1', schema='xyz') + context.assert_contains("ALTER TABLE xyz.t1 DROP COLUMN c1") + def test_drop_column_w_check(self): context = op_fixture('mssql') op.drop_column('t1', 'c1', mssql_drop_check=True) |