diff options
author | alecpl <alec@alec.pl> | 2010-10-06 13:00:12 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-06 13:00:12 +0000 |
commit | ace511a771656c983046919333cee501339c98a1 (patch) | |
tree | e0cf919256f349da6ee939f582fd04428cc8d6d4 /SQL/mysql.initial.sql | |
parent | fec0704423075a1a5199d1c455a3ee0f7ea00ab3 (diff) |
- Add unique index on users.username+users.mail_host
Diffstat (limited to 'SQL/mysql.initial.sql')
-rw-r--r-- | SQL/mysql.initial.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql index fdab11505..456a48313 100644 --- a/SQL/mysql.initial.sql +++ b/SQL/mysql.initial.sql @@ -28,7 +28,7 @@ CREATE TABLE `users` ( `language` varchar(5), `preferences` text, PRIMARY KEY(`user_id`), - INDEX `username_index` (`username`), + UNIQUE `username` (`username`, `mail_host`), INDEX `alias_index` (`alias`) ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */; |