From 7e059102371acee0694642ab766e58edc9f2dc61 Mon Sep 17 00:00:00 2001 From: Nina Date: Thu, 17 Dec 2020 21:29:40 -0500 Subject: [PATCH] Adding compatibility between url domain type and MX records Fix indentation cf #428 --- install/mysql.sql | 2 +- install/upgrades/3.5.0.4.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 install/upgrades/3.5.0.4.sql diff --git a/install/mysql.sql b/install/mysql.sql index 31c9545b..d3dda01f 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -491,7 +491,7 @@ INSERT IGNORE INTO `domaines_type` (name, description, target, entry, compatibil ('vhost-http','Locally hosted with http->https', 'DIRECTORY', '%SUB% IN A @@PUBLIC_IP@@', 'txt,defmx,defmx2,mx,mx2', false, false, false, 'NONE', false), ('vhost-https','Locally hosted with http->https', 'DIRECTORY', '%SUB% IN A @@PUBLIC_IP@@', 'txt,defmx,defmx2,mx,mx2', false, false, false, 'NONE', false), ('vhost-both', 'Locally hosted with http and https', 'DIRECTORY', '%SUB% IN A @@PUBLIC_IP@@', 'txt,defmx,defmx2,mx,mx2', false, false, false, 'NONE', false), -('url', 'URL redirection', 'URL', '%SUB% IN A @@PUBLIC_IP@@', 'txt,defmx,defmx2', false, false, false, 'ALL', false), +('url', 'URL redirection', 'URL', '%SUB% IN A @@PUBLIC_IP@@', 'txt,defmx,defmx2,mx,mx2', false, false, false, 'ALL', false), ('ip', 'IPv4 redirect', 'IP', '%SUB% IN A %TARGET%', 'url,ip,ipv6,txt,mx,mx2,defmx,defmx2', true, true, false, 'ALL', false), ('ipv6', 'IPv6 redirect', 'IPV6', '%SUB% IN AAAA %TARGET%', 'ip,ipv6,txt,mx,mx2,defmx,defmx2', true, true, true, 'ALL', false), ('cname', 'CNAME DNS entry', 'DOMAIN', '%SUB% CNAME %TARGET%', '', true, true, true, 'ALL', false), diff --git a/install/upgrades/3.5.0.4.sql b/install/upgrades/3.5.0.4.sql new file mode 100644 index 00000000..27da2c99 --- /dev/null +++ b/install/upgrades/3.5.0.4.sql @@ -0,0 +1,2 @@ +-- Add compatibility between url domain type and MX records. @see GH#428 +UPDATE domaines_type SET compatibility = 'txt,defmx,defmx2,mx,mx2' WHERE name = 'url';