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);