- make category name unique

This commit is contained in:
steinm 2011-07-21 06:57:44 +00:00
parent 6c1f7c4628
commit ba1b825674

View File

@ -1,7 +1,8 @@
CREATE TABLE `tblCategory` (
`id` int(11) NOT NULL auto_increment,
`name` text NOT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
UNIQUE (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO tblCategory VALUES (0, '');
CREATE TABLE `tblDocumentCategory` (