소스 검색

Added unique to domain name

Joachim M. Giæver 7 년 전
부모
커밋
2fc4518b28
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      postfix.sql

+ 2 - 1
postfix.sql

@@ -41,7 +41,8 @@
 CREATE TABLE `virtual_domains` (
 	`id` int(11) NOT NULL auto_increment,
 	`name` varchar(190) NOT NULL,
-	PRIMARY KEY (`id`)
+	PRIMARY KEY (`id`),
+	UNIQUE KEY `domain` (`name`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 -- Create a table for all of the email addresses and passwords: