mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
- make category name unique
This commit is contained in:
parent
6c1f7c4628
commit
ba1b825674
|
@ -1,7 +1,8 @@
|
||||||
CREATE TABLE `tblCategory` (
|
CREATE TABLE `tblCategory` (
|
||||||
`id` int(11) NOT NULL auto_increment,
|
`id` int(11) NOT NULL auto_increment,
|
||||||
`name` text NOT NULL,
|
`name` text NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
UNIQUE (`name`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
INSERT INTO tblCategory VALUES (0, '');
|
INSERT INTO tblCategory VALUES (0, '');
|
||||||
CREATE TABLE `tblDocumentCategory` (
|
CREATE TABLE `tblDocumentCategory` (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user