fixin MySQL script for MySQL 5.5 compatibility, Timestamps
This commit is contained in:
parent
1dbd6cf68d
commit
d775f6f5e6
|
@ -201,7 +201,7 @@ CREATE TABLE IF NOT EXISTS sessions (
|
||||||
sid varchar(32) NOT NULL default '', -- Cookie de session (md5)
|
sid varchar(32) NOT NULL default '', -- Cookie de session (md5)
|
||||||
uid int(10) unsigned NOT NULL default '0', -- UID du membre concerné
|
uid int(10) unsigned NOT NULL default '0', -- UID du membre concerné
|
||||||
ip varchar(40) NOT NULL default '', -- Adresse IP de la connexion
|
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';
|
) ENGINE=MyISAM COMMENT='Session actives sur le bureau';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -439,7 +439,7 @@ PRIMARY KEY ( `login` )
|
||||||
CREATE TABLE IF NOT EXISTS `size_web` (
|
CREATE TABLE IF NOT EXISTS `size_web` (
|
||||||
`uid` int(10) unsigned NOT NULL default '0',
|
`uid` int(10) unsigned NOT NULL default '0',
|
||||||
`size` 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`),
|
PRIMARY KEY (`uid`),
|
||||||
KEY `ts` (`ts`)
|
KEY `ts` (`ts`)
|
||||||
) ENGINE=MyISAM COMMENT='Web space used by accounts.';
|
) 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` (
|
CREATE TABLE IF NOT EXISTS `size_db` (
|
||||||
`db` varchar(255) NOT NULL default '',
|
`db` varchar(255) NOT NULL default '',
|
||||||
`size` 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 (`db`),
|
PRIMARY KEY (`db`),
|
||||||
KEY `ts` (`ts`)
|
KEY `ts` (`ts`)
|
||||||
) ENGINE=MyISAM COMMENT='MySQL Database used space';
|
) ENGINE=MyISAM COMMENT='MySQL Database used space';
|
||||||
|
|
Loading…
Reference in New Issue