Plugin Use Default Value When Empty
If you want to add a default to an existing column in a table in a migration, you'd do something like this:

$this-&gt;alterColumn('tableName', 'columnName', array('column' =&gt; ColumnType::Number, 'default' =&gt; 0));


If you want to add a default to a new column in a table in a migration, you'd do something like this:

$this-&gt;addColumn('tableName', 'columnName', array('column' =&gt; ColumnType::Number, 'default' =&gt; 0));