summaryrefslogtreecommitdiff
path: root/tests/test_mssql.py
diff options
context:
space:
mode:
authorŁukasz Bołdys <mail@utek.pl>2014-09-09 10:12:12 +0200
committerŁukasz Bołdys <mail@utek.pl>2014-09-09 10:12:12 +0200
commitcaf249ac6d296c1b61a65fc9974ebb9fc3f773cb (patch)
tree8e7d3b452e5fca81a0d5d39c7ab69cf436afc497 /tests/test_mssql.py
parent99749650416d096a67e6286b5ea91a67f293a60d (diff)
downloadalembic-caf249ac6d296c1b61a65fc9974ebb9fc3f773cb.tar.gz
MS SQL is using sp_rename instead of Alter table to rename table
Diffstat (limited to 'tests/test_mssql.py')
-rw-r--r--tests/test_mssql.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_mssql.py b/tests/test_mssql.py
index 5fa6c4b..a18abfe 100644
--- a/tests/test_mssql.py
+++ b/tests/test_mssql.py
@@ -193,6 +193,11 @@ class OpTest(TestCase):
"EXEC sp_rename 't.c', c2, 'COLUMN'"
)
+ def test_rename_table(self):
+ context = op_fixture('mssql')
+ op.rename_table('t1', 't2')
+ context.assert_containt("EXEC sp_rename '[t1]', [t2]")
+
# TODO: when we add schema support
#def test_alter_column_rename_mssql_schema(self):
# context = op_fixture('mssql')