forked from GNUsocial/gnu-social
[Bridge] Replace zero dates with CURRENT_TIMESTAMP
This commit is contained in:
parent
09a1342588
commit
6926d70543
@ -188,7 +188,7 @@ class ForeignLink
|
||||
'profilesync' => ['type' => 'int', 'size' => 'tiny', 'not null' => true, 'default' => 1, 'description' => 'profile synchronization, bit 1 = sync outgoing, bit 2 = sync incoming'],
|
||||
'last_noticesync' => ['type' => 'datetime', 'description' => 'last time notices were imported'],
|
||||
'last_friendsync' => ['type' => 'datetime', 'description' => 'last time friends were imported'],
|
||||
'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' => ['user_id', 'foreign_id', 'service'],
|
||||
|
@ -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'],
|
||||
|
@ -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' => [
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user