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'),