Xethron/migrations-generator — pull request #8 by tomzx (2014-05-26 21:33:41+00:00)
Title: Add support for default numeric values

Hello,

It would be nice if the generator could extract and set defaults for 0/empty string values. For instance, I have many tinyint values with a default value of 0, which ends up without the ->default() decorator.

Running the migrations under SQLite, the default is set to NULL with a NOT NULL constraint, while it should have had a default of 0.