[Bridge] Replace zero dates with CURRENT_TIMESTAMP
This commit is contained in:
@@ -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' => [
|
||||
|
Reference in New Issue
Block a user