From 20db4fceba43be9e3c581300413a51c0c43fdaf4 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 14 Oct 2020 19:07:16 -0400 Subject: [PATCH] Do not re-create sub_domaines unique key compte New installations haven't had this unique key since 2014 (d9e24d9703bd9d3c99353fcb98bac880b25db5f7) and only old installations passing through 3.1.0~a would have had it added. Given that the unique key constraint was never dropped during an AlternC upgrade, I think it should just be dropped here. Re-creating is problematic when merged with other recent changes because the length of both the key and column size are longer than what MySQL/MariaDB support. --- install/upgrades/3.5.0.3.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/upgrades/3.5.0.3.sql b/install/upgrades/3.5.0.3.sql index e728c3c6..93d06e46 100644 --- a/install/upgrades/3.5.0.3.sql +++ b/install/upgrades/3.5.0.3.sql @@ -1,3 +1 @@ -alter table sub_domaines drop index compte; -alter table sub_domaines add UNIQUE (compte,domaine,sub,type,valeur,web_action); - +DROP INDEX IF EXISTS compte on `sub_domaines`;