diff --git a/install/upgrades/0.9.3.sql b/install/upgrades/0.9.3.sql index f8292004..f77251ff 100644 --- a/install/upgrades/0.9.3.sql +++ b/install/upgrades/0.9.3.sql @@ -1,6 +1,6 @@ -- add support for .it -INSERT IGNORE INTO tld VALUES ('it', 1); -INSERT IGNORE INTO tld VALUES ('ws', 1); +INSERT IGNORE INTO `tld` VALUES ('it', 1); +INSERT IGNORE INTO `tld` VALUES ('ws', 1); -- remove the old "estelle" default mx in older tables ALTER TABLE `domaines` MODIFY `mx` varchar(64) DEFAULT NULL; @@ -10,16 +10,15 @@ ALTER TABLE `domaines_standby` MODIFY `mx` varchar(64) DEFAULT NULL; -- -- if comment is null, then the variable is internal and will not show -- up in the generic configuration panel -CREATE TABLE IF NOT EXISTS variable ( - name varchar(48) NOT NULL default '', - value longtext NOT NULL, - comment mediumtext NULL, - PRIMARY KEY (name), - KEY name (name) +CREATE TABLE IF NOT EXISTS `variable` ( + `name` varchar(48) NOT NULL default '', + `value` longtext NOT NULL, + `comment` mediumtext NULL, + PRIMARY KEY (`name`) ) TYPE=MyISAM; -- hosting_tld: only used, for now, in bureau/admin/adm_*add.php -INSERT IGNORE INTO `variable` (name, value, comment) VALUES ('hosting_tld', 0, +INSERT IGNORE INTO `variable` (`name`, `value`, `comment`) VALUES ('hosting_tld', 0, 'This is a FQDN that designates the main hostname of the service. For example, hosting_tld determines in what TLD the "free" user domain diff --git a/install/upgrades/0.9.4.sql b/install/upgrades/0.9.4.sql index 293a894e..856a12ab 100644 --- a/install/upgrades/0.9.4.sql +++ b/install/upgrades/0.9.4.sql @@ -1,8 +1,8 @@ -- Ajout du champ 'type' pour les membres -ALTER TABLE membres ADD COLUMN type varchar(128) default 'default' AFTER admlist; +ALTER TABLE `membres` ADD COLUMN `type` varchar(128) default 'default' AFTER `admlist`; -- Ajout du champ 'type' pour les quotas par défaut -ALTER TABLE defquotas ADD COLUMN type varchar(128) default 'default' AFTER value; +ALTER TABLE `defquotas` ADD COLUMN `type` varchar(128) default 'default' AFTER `value`; -- we don't store cleartext passwords anymore, we use saslauthd ALTER TABLE `mail_users` DROP `sasl`; diff --git a/install/upgrades/0.9.5.sql b/install/upgrades/0.9.5.sql index b2093b1e..b7627550 100644 --- a/install/upgrades/0.9.5.sql +++ b/install/upgrades/0.9.5.sql @@ -1,11 +1,11 @@ -- Pour les duré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; +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!=''; +ALTER IGNORE TABLE `ftpusers` ADD COLUMN `encrypted_password` VARCHAR(32) default NULL AFTER `password`; +UPDATE `ftpusers` SET `encrypted_password`=ENCRYPT(`password`) WHERE `password`!=''; -- -------------------------------------------------------- -- TABLES de mémorisation de la taille des dossiers web/mail/db diff --git a/install/upgrades/0.9.6.sql b/install/upgrades/0.9.6.sql index e9adf08d..707e0e1f 100644 --- a/install/upgrades/0.9.6.sql +++ b/install/upgrades/0.9.6.sql @@ -6,4 +6,4 @@ PRIMARY KEY ( `login` ) ) COMMENT = 'Allowed account for secondary mx managment'; # On met les quota par defaut du nombre d'utilisateurs mysql -INSERT IGNORE INTO defquotas (quota,value) VALUES ('mysql_users',1); +INSERT IGNORE INTO defquotas (`quota`,`value`) VALUES ('mysql_users',1);