From 4ebc3c9cfab406bcd03fb6fad84941dc0df81fdf Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 22 Aug 2012 21:43:45 -0400 Subject: - changelog + support for remove autoinc --- tests/test_mysql.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test_mysql.py') diff --git a/tests/test_mysql.py b/tests/test_mysql.py index 28c1fd6..456aab7 100644 --- a/tests/test_mysql.py +++ b/tests/test_mysql.py @@ -45,6 +45,15 @@ def test_col_add_autoincrement(): 'ALTER TABLE t1 CHANGE c1 c2 INTEGER NULL AUTO_INCREMENT' ) +def test_col_remove_autoincrement(): + context = op_fixture('mysql') + op.alter_column('t1', 'c1', name="c2", existing_type=Integer, + existing_autoincrement=True, + autoincrement=False) + context.assert_( + 'ALTER TABLE t1 CHANGE c1 c2 INTEGER NULL' + ) + def test_col_nullable(): context = op_fixture('mysql') op.alter_column('t1', 'c1', nullable=False, existing_type=Integer) -- cgit v1.2.1