create table supermasters (
ip VARCHAR(64) NOT NULL,
nameserver VARCHAR(255) NOT NULL,
- account VARCHAR(40) DEFAULT NULL
+ account VARCHAR(40) DEFAULT NULL,
+ PRIMARY KEY (ip, nameserver)
) Engine=InnoDB;
create table supermasters (
ip VARCHAR(64) NOT NULL,
nameserver VARCHAR(255) NOT NULL,
- account VARCHAR(40) DEFAULT NULL
+ account VARCHAR(40) DEFAULT NULL,
+ PRIMARY KEY(ip, nameserver)
);
create table domainmetadata (
create table supermasters (
ip INET NOT NULL,
nameserver VARCHAR(255) NOT NULL,
- account VARCHAR(40) DEFAULT NULL
+ account VARCHAR(40) DEFAULT NULL,
+ PRIMARY KEY (ip, nameserver)
);
-- GRANT SELECT ON supermasters TO pdns;
nameserver VARCHAR(255) NOT NULL COLLATE NOCASE,
account VARCHAR(40) DEFAULT NULL
);
+
+CREATE UNIQUE INDEX ip_nameserver_pk ON supermasters(ip, nameserver);