Explorar el Código

Added unique to domain name

Joachim M. Giæver hace 7 años
padre
commit
2fc4518b28
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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: