[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

@@ -99,7 +99,7 @@ class ForeignSubscription
'service' => ['type' => 'int', 'not null' => true, 'description' => 'service where relationship happens'],
'subscriber' => ['type' => 'int', 'size' => 'big', 'not null' => true, 'description' => 'subscriber on foreign service'],
'subscribed' => ['type' => 'int', 'size' => 'big', 'not null' => true, 'description' => 'subscribed user'],
'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'],
],
'primary key' => ['service', 'subscriber', 'subscribed'],
'foreign keys' => [