summaryrefslogtreecommitdiff
path: root/tests/test_mssql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-02-11 14:37:59 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-02-11 14:37:59 -0500
commit8cdd16e401c022a0163016f686f2d9c772fd8fdc (patch)
tree269f26bcde680e9fe6398b99364e8b7111161dba /tests/test_mssql.py
parentcc6a13c4f4cf9e635aedfe3c377e5b6789f3e8f8 (diff)
downloadalembic-8cdd16e401c022a0163016f686f2d9c772fd8fdc.tar.gz
- move to 0.5.0 as we are making some slight naming changes
- add a generalized approach for renamed kw args, accepting the old ones using a specialized decorator - change "tablename" to "table_name" for create_index, drop_index, drop_constraint - change "name" to "new_column_name" for alter_column #104
Diffstat (limited to 'tests/test_mssql.py')
-rw-r--r--tests/test_mssql.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_mssql.py b/tests/test_mssql.py
index 280003c..4113e33 100644
--- a/tests/test_mssql.py
+++ b/tests/test_mssql.py
@@ -53,7 +53,7 @@ class OpTest(TestCase):
def test_alter_column_rename_mssql(self):
context = op_fixture('mssql')
- op.alter_column("t", "c", name="x")
+ op.alter_column("t", "c", new_column_name="x")
context.assert_(
"EXEC sp_rename 't.c', 'x', 'COLUMN'"
)
@@ -154,7 +154,8 @@ class OpTest(TestCase):
def test_alter_do_everything(self):
context = op_fixture('mssql')
- op.alter_column("t", "c", name="c2", nullable=True, type_=Integer, server_default="5")
+ op.alter_column("t", "c", new_column_name="c2", nullable=True,
+ type_=Integer, server_default="5")
context.assert_(
'ALTER TABLE t ALTER COLUMN c INTEGER NULL',
"ALTER TABLE t ADD DEFAULT '5' FOR c",