[enh] preparing for the future : let's allow us to add \n into DNS entries, preparing for ... IPv6 \o/

This commit is contained in:
Benjamin Sonntag 2018-06-25 16:48:12 +02:00
parent 5a8fd5db20
commit 2695db49a2
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -65,3 +65,6 @@ DELETE FROM variable WHERE name IN (
'ftp_human_name'
);
-- we'd like to prepare IPv6 ;)
ALTER TABLE `domaines_type` CHANGE `entry` `entry` TEXT DEFAULT '';