add unique key on domain name
This commit is contained in:
parent
e6abc3453d
commit
ca6fdc5d73
1 changed files with 2 additions and 1 deletions
|
|
@ -101,7 +101,8 @@ USE mailserver;
|
|||
CREATE TABLE IF NOT EXISTS `virtual_domains` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(50) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY (`name`)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `virtual_aliases` (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue