From 7034a45f6120f069158e414a816ea261521a45f7 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 24 Jul 2013 14:49:23 +0000 Subject: [PATCH] Ajout des alter tables de la table sub_domaines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il manque la colonne id, nécessaire à update_domaines et autres. --- install/upgrades/3.1.0~a.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/upgrades/3.1.0~a.sql b/install/upgrades/3.1.0~a.sql index 2dd4fe4c..936da6ea 100644 --- a/install/upgrades/3.1.0~a.sql +++ b/install/upgrades/3.1.0~a.sql @@ -44,3 +44,8 @@ CREATE TABLE IF NOT EXISTS `actions` ( -- Alter table domaines to add zone ttl field ALTER TABLE `domaines` ADD zonettl int(10) unsigned NOT NULL default '86400'; +-- Alter table sub_domaines pour contenir au nouveau schema +alter table sub_domaines drop primary key; +alter table sub_domaines add UNIQUE (compte,domaine,sub,type,valeur); +alter table sub_domaines add id bigint(20) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST; +