Is it possible to specify the 'on update' section of a new field like the below snippet? Or this something that can be considered for CI4?
I know I can create the field manually, but it looks a lot cleaner like this, especially for developer on-boarding.
PHP Code:
$this->forge->addFields([
'field_name' => [
'type' => 'DATETIME',
'default' => 'CURRENT_TIMESTAMP',
'update' => 'CURRENT_TIMESTAMP'
]
]);
$this->forge->createTable('table_name');
Kristian Matthews-Kennington
Apple Certified Associate Mac Integration & Management 10.10