X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=DBSchema%2FDBD%2Fmysql.pm;fp=DBSchema%2FDBD%2Fmysql.pm;h=07d341af894dc1788ff1206893dde029b3a32391;hb=9bfaf8ed706999cb345c146817db0c005687b272;hp=c04a3d67e6842f877bfedb9d9bdc712d2228228c;hpb=2511d0147a00e734ad73f466e3a2d5e8c3a2efd7;p=DBIx-DBSchema.git diff --git a/DBSchema/DBD/mysql.pm b/DBSchema/DBD/mysql.pm index c04a3d6..07d341a 100644 --- a/DBSchema/DBD/mysql.pm +++ b/DBSchema/DBD/mysql.pm @@ -139,6 +139,15 @@ sub column_callback { } + # MySQL no longer supports defaults for text/blob columns + if ( $column_obj->type =~ /(TEXT|BLOB)/i + and defined $column_obj->default ) { + + # There's no way to unset the default cleanly. + # An empty string isn't quite right. + $column_obj->{'default'} = undef; + } + $hashref; }