last_check INT DEFAULT NULL,
type VARCHAR(6) NOT NULL,
notified_serial INT DEFAULT NULL,
- account VARCHAR(40) DEFAULT NULL,
+ account VARCHAR(40) CHARACTER SET 'utf8' DEFAULT NULL,
PRIMARY KEY (id)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE UNIQUE INDEX name_index ON domains(name);
ordername VARCHAR(255) BINARY DEFAULT NULL,
auth TINYINT(1) DEFAULT 1,
PRIMARY KEY (id)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE INDEX nametype_index ON records(name,type);
CREATE INDEX domain_id ON records(domain_id);
CREATE TABLE supermasters (
ip VARCHAR(64) NOT NULL,
nameserver VARCHAR(255) NOT NULL,
- account VARCHAR(40) NOT NULL,
+ account VARCHAR(40) CHARACTER SET 'utf8' NOT NULL,
PRIMARY KEY (ip, nameserver)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE TABLE comments (
name VARCHAR(255) NOT NULL,
type VARCHAR(10) NOT NULL,
modified_at INT NOT NULL,
- account VARCHAR(40) NOT NULL,
- comment VARCHAR(64000) NOT NULL,
+ account VARCHAR(40) CHARACTER SET 'utf8' NOT NULL,
+ comment VARCHAR(16000) CHARACTER SET 'utf8' NOT NULL,
PRIMARY KEY (id)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE INDEX comments_domain_id_idx ON comments (domain_id);
CREATE INDEX comments_name_type_idx ON comments (name, type);
kind VARCHAR(32),
content TEXT,
PRIMARY KEY (id)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE INDEX domainmetadata_idx ON domainmetadata (domain_id, kind);
active BOOL,
content TEXT,
PRIMARY KEY(id)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE INDEX domainidindex ON cryptokeys(domain_id);
algorithm VARCHAR(50),
secret VARCHAR(255),
PRIMARY KEY (id)
-) Engine=InnoDB;
+) Engine=InnoDB CHARACTER SET 'latin1';
CREATE UNIQUE INDEX namealgoindex ON tsigkeys(name, algorithm);