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
This commit is contained in:
Camille Lafitte 2010-12-19 18:42:36 +00:00
parent 9fb4e1a884
commit a55106e0e5
2 changed files with 5 additions and 2 deletions

View File

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

View File

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