forked from GNUsocial/gnu-social
[CORE] MySQL 5.5 support fully restored
This commit is contained in:
@@ -43,7 +43,7 @@ class Usage_stats extends Managed_DataObject
|
||||
'fields' => [
|
||||
'type' => ['type' => 'varchar', 'length' => 191, 'description' => 'Type of countable entity'],
|
||||
'count' => ['type' => 'int', 'size' => 'int', 'default' => 0, 'description' => 'Number of entities of this type'],
|
||||
'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
|
||||
'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'],
|
||||
],
|
||||
'primary key' => ['type'],
|
||||
'unique keys' => [
|
||||
|
@@ -51,7 +51,7 @@ class User_openid_prefs extends Managed_DataObject
|
||||
public $user_id; // The User with the prefs
|
||||
public $hide_profile_link; // Hide the link on the profile block?
|
||||
public $created; // datetime
|
||||
public $modified; // datetime
|
||||
public $modified; // timestamp
|
||||
|
||||
/**
|
||||
* The One True Thingy that must be defined and declared.
|
||||
@@ -77,13 +77,11 @@ class User_openid_prefs extends Managed_DataObject
|
||||
'type' => 'datetime',
|
||||
'not null' => true,
|
||||
'description' => 'date this record was created',
|
||||
'default' => 'CURRENT_TIMESTAMP'
|
||||
],
|
||||
'modified' => [
|
||||
'type' => 'timestamp',
|
||||
'not null' => true,
|
||||
'description' => 'date this record was modified',
|
||||
'default' => 'CURRENT_TIMESTAMP'
|
||||
],
|
||||
],
|
||||
'primary key' => ['user_id'],
|
||||
|
Reference in New Issue
Block a user