]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Render the default value in the way it correctly reflects the type of the original...
authorMoriyoshi Koizumi <mozo@mozo.jp>
Tue, 24 Jul 2012 16:24:14 +0000 (01:24 +0900)
committerMoriyoshi Koizumi <mozo@mozo.jp>
Tue, 24 Jul 2012 16:24:14 +0000 (01:24 +0900)
commit74112002c1148473824cea8a6458020e819e1934
tree6bf201c3269f9d0c8e604b2c5f2c562c889926eb
parente78e12418f8b251edfcbb864544d89ab226a8294
Render the default value in the way it correctly reflects the type of the original value.

This is needed to deal with the case where the coercing isn't supposed to work, as follows:

mysql> CREATE TABLE foo (t1 TIMESTAMP DEFAULT '0');
ERROR 1067 (42000): Invalid default value for 't1'
alembic/ddl/mysql.py