Script SQL initial CASSE, correction

This commit is contained in:
Benjamin Sonntag 2011-02-04 15:55:49 +00:00
parent 8c9f58d70f
commit de17ba91db
1 changed files with 3 additions and 3 deletions

View File

@ -258,8 +258,8 @@ CREATE TABLE IF NOT EXISTS sub_domaines (
web_action enum ('OK','UPDATE','DELETE') NOT NULL default 'UPDATE',
dns_result varchar(255) not null default '',
enable enum ('ENABLED', 'ENABLE', 'DISABLED', 'DISABLE') NOT NULL DEFAULT 'ENABLED',
PRIMARY KEY (compte,domaine,sub,type),
FOREIGN KEY (type) REFERENCES (domaines_type)
PRIMARY KEY (compte,domaine,sub,type)
-- ,FOREIGN KEY (type) REFERENCES (domaines_type)
) TYPE=MyISAM;
#
@ -501,7 +501,7 @@ INSERT IGNORE INTO `domaines_type` (name, description, target, entry, compatibil
('ipv6','ipv6 address', 'IPV6', '%SUB% IN AAAA %TARGET%','ip,ipv6,webmail,txt',true, true),
('cname', 'cname entry', 'DOMAIN', '%SUB% CNAME %TARGET%', 'txt',true, true),
('txt', 'txt entry', 'TXT', '%SUB% IN TXT "%TARGET%"','local,url,ip,webmail,ipv6,cname,txt',true, true),
('mx', 'mx entry', 'IP', '%SUB% IN MX %TARGET%', 'local,url,ip,webmail,ipv6,cname,txt',true, false)
('mx', 'mx entry', 'IP', '%SUB% IN MX %TARGET%', 'local,url,ip,webmail,ipv6,cname,txt',true, false),
('panel', 'Panel redirection', 'NONE', '%SUB% IN A @@PUBLIC_IP@@', 'local,url,ip,webmail,ipv6,cname,txt',true, false)
;