diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-22 16:21:00 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-22 16:21:00 -0400 |
commit | b2978071990407cf6593042beda619972c62ea87 (patch) | |
tree | 92ca975bfbc561c1c6edf58e8d574641fdc5627b /tests/test_mysql.py | |
parent | 1328b5e4dc70924d54a7f4c5201a840224252b47 (diff) | |
download | alembic-b2978071990407cf6593042beda619972c62ea87.tar.gz |
- add an additional fix to the MySQL fixes for re: #103.
Diffstat (limited to 'tests/test_mysql.py')
-rw-r--r-- | tests/test_mysql.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_mysql.py b/tests/test_mysql.py index f598d99..16b171c 100644 --- a/tests/test_mysql.py +++ b/tests/test_mysql.py @@ -90,6 +90,8 @@ class MySQLOpTest(TestCase): 'ALTER TABLE t ALTER COLUMN c DROP DEFAULT' ) + + def test_alter_column_modify_default(self): context = op_fixture('mysql') # notice we dont need the existing type on this one... @@ -127,6 +129,13 @@ class MySQLOpTest(TestCase): "ALTER TABLE t1 MODIFY c1 INTEGER NOT NULL DEFAULT 'q'" ) + def test_alter_column_multi_alter_w_drop_default(self): + context = op_fixture('mysql') + op.alter_column('t1', 'c1', nullable=False, server_default=None, type_=Integer) + context.assert_( + "ALTER TABLE t1 MODIFY c1 INTEGER NOT NULL" + ) + def test_col_alter_type_required(self): op_fixture('mysql') assert_raises_message( |