From 7d73cd7f8aea95eede51675d4b30b6d16973c8e2 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 13 Jun 2011 12:19:31 +0000 Subject: [PATCH] Patch pour le upgrade de version pre1 Xals, a merger dans le trunk --- install/upgrades/1.0.sql | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/install/upgrades/1.0.sql b/install/upgrades/1.0.sql index f0c96a4b..cebaf920 100644 --- a/install/upgrades/1.0.sql +++ b/install/upgrades/1.0.sql @@ -1,3 +1,57 @@ +-------------------------------------------------------------- +-- Because of problems with people using AlternC pre1 , +-- we include 0.9.10.sql in this file + +ALTER IGNORE TABLE `membres` ADD COLUMN `notes` TEXT NOT NULL AFTER `type`; + +CREATE TABLE IF NOT EXISTS `policy` ( + `name` varchar(64) NOT NULL, + `minsize` tinyint(3) unsigned NOT NULL, + `maxsize` tinyint(3) unsigned NOT NULL, + `classcount` tinyint(3) unsigned NOT NULL, + `allowlogin` tinyint(3) unsigned NOT NULL, + PRIMARY KEY (`name`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='The password policies for services'; + + +INSERT IGNORE INTO `variable` (`name` ,`value` ,`comment`) +VALUES ( +'subadmin_restriction', '', +'This variable set the way the account list works for accounts other than "admin" (2000). 0 (default) = admin other than admin/2000 can see their own account, but not the other one 1 = admin other than admin/2000 can see any account by clicking the ''show all accounts'' link. ' +); + +-- -------------------------------------------------------- +-- TABLES de mémorisation de la taille des dossiers db/listes + +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_mailman` ( + `list` varchar(255) NOT NULL default '', + `uid` int(11) NOT NULL default '0', + `size` int(10) unsigned NOT NULL default '0', + `ts` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, + PRIMARY KEY (`list`), + KEY `ts` (`ts`), + KEY `uid` (`uid`) +) ENGINE=MyISAM COMMENT='Mailman Lists used space'; + +-- IPv6 compatibility : +ALTER TABLE `slaveip` CHANGE `ip` `ip` VARCHAR(40); +ALTER TABLE `sessions` CHANGE `ip` `ip` VARCHAR( 40 ) NULL; + +--- type subdomain evolution +ALTER TABLE `sub_domaines` CHANGE `type` `type` VARCHAR(30); +ALTER TABLE `sub_domaines_standby` CHANGE `type` `type` VARCHAR(30); + +-- END OF 0.9.10.sql + -- Alter table to allow use of ipv6, cname and txt in dns record ALTER TABLE sub_domaines DROP PRIMARY KEY; ALTER TABLE sub_domaines ADD CONSTRAINT pk_SubDomaines PRIMARY KEY (compte,domaine,sub,type,valeur);