From 2695db49a27fe84e0738b720e81a19d6381d2aff Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Mon, 25 Jun 2018 16:48:12 +0200 Subject: [PATCH] [enh] preparing for the future : let's allow us to add \n into DNS entries, preparing for ... IPv6 \o/ --- install/mysql.sql | 2 +- install/upgrades/3.5.0.1.sql | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install/mysql.sql b/install/mysql.sql index e4e9acdf..fc377c56 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -466,7 +466,7 @@ CREATE TABLE IF NOT EXISTS `domaines_type` ( `name` VARCHAR (30) NOT NULL, -- Uniq name `description` TEXT, -- Human description `target` enum ('NONE', 'URL', 'DIRECTORY', 'IP', 'IPV6', 'DOMAIN', 'TXT') NOT NULL DEFAULT 'NONE', -- Target type - `entry` VARCHAR (255) DEFAULT '', -- BIND entry + `entry` TEXT DEFAULT '', -- BIND entry `compatibility` VARCHAR (255) DEFAULT '', -- Which type can be on the same subdomains `enable` enum ('ALL', 'NONE', 'ADMIN') NOT NULL DEFAULT 'ALL', -- Show this option to who ? `only_dns` BOOLEAN DEFAULT FALSE, -- Update_domains modify just the dns, no web configuration diff --git a/install/upgrades/3.5.0.1.sql b/install/upgrades/3.5.0.1.sql index c057bc85..b53fbe8a 100644 --- a/install/upgrades/3.5.0.1.sql +++ b/install/upgrades/3.5.0.1.sql @@ -64,4 +64,7 @@ DELETE FROM variable WHERE name IN ( 'mail_human_smtps','mail_human_submission', 'mail_human_imap', 'mail_human_smtp', 'ftp_human_name' ); - + +-- we'd like to prepare IPv6 ;) +ALTER TABLE `domaines_type` CHANGE `entry` `entry` TEXT DEFAULT ''; +