From f7b4037649db1eced5d9cbe1b9d34e0d3a1b4a1e Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Wed, 17 Oct 2012 12:37:48 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20du=20bug=20qui=20cr=C3=A9ait=20des?= =?UTF-8?q?=20doublons=20pour=20la=20table=20default=5Fsubdomaines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/mysql.sql | 2 +- install/upgrades/1.1.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/mysql.sql b/install/mysql.sql index c8bb0b47..040857c8 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -689,7 +689,7 @@ CREATE TABLE IF NOT EXISTS `default_subdomains` ( PRIMARY KEY (`id`) ) COMMENT='Contains the defaults subdomains created on domains creation'; -INSERT INTO `default_subdomains` (`sub`, `domain_type`, `domain_type_parameter`, `concerned`) VALUES +INSERT IGNORE INTO `default_subdomains` (`sub`, `domain_type`, `domain_type_parameter`, `concerned`) VALUES ('www', 'VHOST', '%%DOMAINDIR%%', 'MAIN'), ('mail', 'WEBMAIL', '', 'MAIN'), ('', 'URL', 'http://www.%%DOMAIN%%', 'MAIN'), diff --git a/install/upgrades/1.1.sql b/install/upgrades/1.1.sql index c58890d0..7a902992 100644 --- a/install/upgrades/1.1.sql +++ b/install/upgrades/1.1.sql @@ -211,7 +211,7 @@ CREATE TABLE IF NOT EXISTS `default_subdomains` ( PRIMARY KEY (`id`) ) COMMENT='Contains the defaults subdomains created on domains creation'; -INSERT INTO `default_subdomains` (`sub`, `domain_type`, `domain_type_parameter`, `concerned`) VALUES +INSERT IGNORE INTO `default_subdomains` (`sub`, `domain_type`, `domain_type_parameter`, `concerned`) VALUES ('www', 'VHOST', '%%DOMAINDIR%%', 'MAIN'), ('mail', 'WEBMAIL', '', 'MAIN'), ('', 'URL', 'http://www.%%DOMAIN%%', 'MAIN'),