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/sqlite.initial.sql | |
parent | fec0704423075a1a5199d1c455a3ee0f7ea00ab3 (diff) |
- Add unique index on users.username+users.mail_host
Diffstat (limited to 'SQL/sqlite.initial.sql')
-rw-r--r-- | SQL/sqlite.initial.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql index e7faeedea..ea7650cb7 100644 --- a/SQL/sqlite.initial.sql +++ b/SQL/sqlite.initial.sql @@ -97,7 +97,7 @@ CREATE TABLE users ( preferences text NOT NULL default '' ); -CREATE INDEX ix_users_username ON users(username); +CREATE UNIQUE INDEX ix_users_username ON users(username, mail_host); CREATE INDEX ix_users_alias ON users(alias); -- -------------------------------------------------------- |