[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

@@ -123,7 +123,7 @@ class ForeignUser
'service' => ['type' => 'int', 'not null' => true, 'description' => 'foreign key to service'],
'uri' => ['type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'identifying URI'],
'nickname' => ['type' => 'varchar', 'length' => 191, 'description' => 'nickname on foreign service'],
'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', 'service'],