From d775f6f5e6e01b17b90ff71d7e544bdddca24350 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 28 Nov 2012 07:10:34 +0000 Subject: [PATCH] fixin MySQL script for MySQL 5.5 compatibility, Timestamps --- install/mysql.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/mysql.sql b/install/mysql.sql index 6e0f93de..c40f4e18 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -201,7 +201,7 @@ CREATE TABLE IF NOT EXISTS sessions ( sid varchar(32) NOT NULL default '', -- Cookie de session (md5) uid int(10) unsigned NOT NULL default '0', -- UID du membre concerné ip varchar(40) NOT NULL default '', -- Adresse IP de la connexion - ts timestamp(14) NOT NULL + ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=MyISAM COMMENT='Session actives sur le bureau'; -- @@ -439,7 +439,7 @@ PRIMARY KEY ( `login` ) CREATE TABLE IF NOT EXISTS `size_web` ( `uid` int(10) unsigned NOT NULL default '0', `size` int(10) unsigned NOT NULL default '0', - `ts` timestamp(14) NOT NULL, + `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`uid`), KEY `ts` (`ts`) ) ENGINE=MyISAM COMMENT='Web space used by accounts.'; @@ -448,7 +448,7 @@ CREATE TABLE IF NOT EXISTS `size_web` ( CREATE TABLE IF NOT EXISTS `size_db` ( `db` varchar(255) NOT NULL default '', `size` int(10) unsigned NOT NULL default '0', - `ts` timestamp(14) NOT NULL, + `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`db`), KEY `ts` (`ts`) ) ENGINE=MyISAM COMMENT='MySQL Database used space';