You will only see the public (readable) repos here until you login.
Browse Source

Added unique to domain name

Joachim M. Giæver 2 years ago
parent
commit
2fc4518b28
1 changed files with 2 additions and 1 deletions
  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: