c006 / yii2-migration-utility

Automatically writes the create tables for migrations or create tables in general. Uses MySQL
MIT License
64 stars 35 forks source link

Replace empty() to is_null() upon checking 'defaultValue' #16

Closed psolom closed 8 years ago

psolom commented 8 years ago

I have found that DEFAULT VALUE is ignored if it == 0 The only thing required to solve the issue is replace empty() to is_null() upon checking 'defaultValue' I tested it on MySQL but believe it is the same for others.

c006 commented 8 years ago

Thank you, it's been merged.