From a55106e0e56beb3f46fa181006294f8e3c58a28d Mon Sep 17 00:00:00 2001 From: Camille Lafitte Date: Sun, 19 Dec 2010 18:42:36 +0000 Subject: [PATCH] Le type des domaines passent en chaine de caracteres * Permettre de nommer clairement les types independamment d'un ordre numerique non g\303\251rable depuis un plugin --- install/mysql.sql | 4 ++-- install/upgrades/0.9.10.sql | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install/mysql.sql b/install/mysql.sql index d0f7f324..55066535 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -266,7 +266,7 @@ CREATE TABLE IF NOT EXISTS sub_domaines ( domaine varchar(64) NOT NULL default '', sub varchar(100) NOT NULL default '', valeur varchar(255) default NULL, - type int(1) NOT NULL default '0', + type varchar(30) NOT NULL default '0', PRIMARY KEY (compte,domaine,sub,type) ) TYPE=MyISAM; @@ -280,7 +280,7 @@ CREATE TABLE IF NOT EXISTS sub_domaines_standby ( domaine varchar(64) NOT NULL default '', sub varchar(100) NOT NULL default '', valeur varchar(255) default NULL, - type int(1) NOT NULL default '0', + type varchar(30) NOT NULL default '0', action int(1) NOT NULL default '0', PRIMARY KEY (compte,domaine,sub,action,type) ) TYPE=MyISAM; diff --git a/install/upgrades/0.9.10.sql b/install/upgrades/0.9.10.sql index 4f3872d2..4d4f488e 100644 --- a/install/upgrades/0.9.10.sql +++ b/install/upgrades/0.9.10.sql @@ -42,4 +42,7 @@ CREATE TABLE IF NOT EXISTS `size_mailman` ( 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);