From 496ab8c920f8ea931ec3d231b3d86db70569029c Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Fri, 19 Apr 2019 20:54:24 +0100 Subject: [PATCH] User_im_prefs - Fix wrong schemaDef --- classes/User_im_prefs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(