From d82f87a366584a7fff43673c2c38557777f2a7a5 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 18 Feb 2015 18:29:29 +0100 Subject: [PATCH] ensure that values in sub_domaines are prefixed by / for hosting subdomains --- install/upgrades/3.1.4.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 install/upgrades/3.1.4.sql diff --git a/install/upgrades/3.1.4.sql b/install/upgrades/3.1.4.sql new file mode 100644 index 00000000..88100fd5 --- /dev/null +++ b/install/upgrades/3.1.4.sql @@ -0,0 +1,4 @@ + +UPDATE sub_domaines SET valeur=CONCAT('/',valeur), web_action="UPDATE" + WHERE type IN ('vhost', 'php52') AND valeur NOT LIKE '/%'; +