From: Diogo Cordeiro Date: Fri, 19 Apr 2019 19:54:24 +0000 (+0100) Subject: User_im_prefs - Fix wrong schemaDef X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=496ab8c9;p=quix0rs-gnu-social.git User_im_prefs - Fix wrong schemaDef --- diff --git a/classes/User_im_prefs.php b/classes/User_im_prefs.php index 6a5fc7f3ab..eb5b67269a 100644 --- a/classes/User_im_prefs.php +++ b/classes/User_im_prefs.php @@ -57,8 +57,8 @@ class User_im_prefs extends Managed_DataObject 'notify' => array('type' => 'int', 'size' => 'tiny', 'not null' => true, 'default' => 0, 'description' => 'Notify when a new notice is sent'), 'replies' => array('type' => 'int', 'size' => 'tiny', 'not null' => true, 'default' => 0, 'description' => 'Send replies from people not subscribed to'), 'updatefrompresence' => array('type' => 'int', 'size' => 'tiny', 'not null' => true, 'default' => 0, 'description' => 'Send replies from people not subscribed to.'), - 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'), - 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'), + 'created' => array('type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'), + 'modified' => array('type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'), ), 'primary key' => array('user_id', 'transport'), 'unique keys' => array(