[CORE] MySQL 5.5 support fully restored

This commit is contained in:
Diogo Cordeiro 2019-07-25 15:35:24 +01:00
parent 46be9b76ef
commit d1fc7c0774
3 changed files with 3 additions and 5 deletions

View File

@ -32,7 +32,7 @@ defined('GNUSOCIAL') || die();
define('GNUSOCIAL_ENGINE', 'GNU social');
define('GNUSOCIAL_ENGINE_URL', 'https://www.gnu.org/software/social/');
define('GNUSOCIAL_BASE_VERSION', '1.20.6');
define('GNUSOCIAL_BASE_VERSION', '1.20.7');
define('GNUSOCIAL_LIFECYCLE', 'release'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE);

View File

@ -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' => [

View File

@ -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'],