From 7c0e7c953cc13d20a2a8edf3ecd27cfc347c8520 Mon Sep 17 00:00:00 2001 From: Dominique Rousseau Date: Tue, 19 Jan 2016 16:14:03 +0100 Subject: [PATCH] fix de la creation de la table default_subdomains ( fixes #1662 ) --- install/mysql.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/mysql.sql b/install/mysql.sql index 34845926..4ba2516b 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -687,7 +687,8 @@ CREATE TABLE IF NOT EXISTS `default_subdomains` ( `domain_type_parameter` varchar(255) NOT NULL, `concerned` enum('BOTH','MAIN','SLAVE') NOT NULL DEFAULT 'MAIN', `enabled` boolean not null default true, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + UNIQUE KEY `unique_row` (`sub`,`domain_type`,`domain_type_parameter`,`concerned`) ) ENGINE=MyISAM COMMENT='Contains the defaults subdomains created on domains creation'; INSERT IGNORE INTO `default_subdomains` (`sub`, `domain_type`, `domain_type_parameter`, `concerned`) VALUES