modifiers such as "schema" when emitting the DDL.
fixes #284
self._exec(
_ExecDropFKConstraint(table_name, column)
)
- super(MSSQLImpl, self).drop_column(table_name, column)
+ super(MSSQLImpl, self).drop_column(table_name, column, **kw)
class _ExecDropConstraint(Executable, ClauseElement):
.. changelog::
:version: 0.7.5
+ .. change::
+ :tags: bug, operations, mssql
+ :tickets: 284
+
+ Fixed bug where the mssql DROP COLUMN directive failed to include
+ modifiers such as "schema" when emitting the DDL.
+
.. change::
:tags: bug, autogenerate, postgresql
:tickets: 282
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)