I am updating my table structure and everything work good, but default value for column created_at
is 0000-00-00 00:00:00
again and again.
I want it to be equal to current time (CURRENT_TIMESTAMP);
Here is my current code:
$table->addColumn($tableBanners, 'created_at', [
'type' => Varien_Db_Ddl_Table::TYPE_TIMESTAMP,
'nullable' => false,
'comment' => 'created_at',
'default' => 'CURRENT_TIMESTAMP'
]);