[Bridge] Replace zero dates with CURRENT_TIMESTAMP

This commit is contained in:
Hugo Sales
2020-09-07 23:50:49 +00:00
committed by Hugo Sales
parent 6a2a0d4e66
commit 41f90f07b1
4 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ class ForeignService
'id' => ['type' => 'int', 'not null' => true, 'description' => 'numeric key for service'],
'name' => ['type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'name of the service'],
'description' => ['type' => 'varchar', 'length' => 191, 'description' => 'description'],
'created' => ['type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'],
'created' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'],
'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'],
],
'primary key' => ['id'],