2006-04-26 12:28:53 +00:00
|
|
|
|
-- Pour les dur<75>es de comptes
|
|
|
|
|
ALTER IGNORE TABLE membres ADD COLUMN created datetime default NULL AFTER type;
|
|
|
|
|
ALTER IGNORE TABLE membres ADD COLUMN renewed datetime default NULL AFTER created;
|
|
|
|
|
ALTER IGNORE TABLE membres ADD COLUMN duration int(4) default NULL AFTER renewed;
|
|
|
|
|
|
|
|
|
|
-- Pour l'encryptage des mots de passe ftp
|
|
|
|
|
ALTER IGNORE TABLE ftpusers ADD COLUMN encrypted_password VARCHAR(32) default NULL AFTER password;
|
|
|
|
|
UPDATE ftpusers SET encrypted_password=ENCRYPT(password) WHERE password!='';
|
|
|
|
|
|
2006-04-26 14:26:21 +00:00
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
-- TABLES de m<>morisation de la taille des dossiers web/mail/db
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
PRIMARY KEY (`db`),
|
|
|
|
|
KEY `ts` (`ts`)
|
|
|
|
|
) TYPE=MyISAM COMMENT='MySQL Database used space';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `size_mail` (
|
|
|
|
|
`alias` varchar(255) NOT NULL default '',
|
|
|
|
|
`size` int(10) unsigned NOT NULL default '0',
|
|
|
|
|
`ts` timestamp(14) NOT NULL,
|
|
|
|
|
PRIMARY KEY (`alias`),
|
|
|
|
|
KEY `ts` (`ts`)
|
|
|
|
|
) TYPE=MyISAM COMMENT='Mail space used by pop accounts.';
|
|
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
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,
|
|
|
|
|
PRIMARY KEY (`uid`),
|
|
|
|
|
KEY `ts` (`ts`)
|
|
|
|
|
) TYPE=MyISAM COMMENT='Web space used by accounts.';
|
|
|
|
|
|
2006-04-26 14:59:28 +00:00
|
|
|
|
-- ajout d'une table pour la gestion des utilisateurs mysql
|
2006-04-26 16:58:29 +00:00
|
|
|
|
CREATE TABLE IF NOT EXISTS `dbusers` (
|
2006-04-26 14:59:28 +00:00
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
|
`uid` int(10) unsigned NOT NULL default '0',
|
|
|
|
|
`name` varchar(16) NOT NULL default '',
|
|
|
|
|
KEY `id` (`id`)
|
|
|
|
|
) TYPE=MyISAM COMMENT='Utilisateurs MySQL des membres';
|
|
|
|
|
|