summaryrefslogtreecommitdiff
path: root/SQL/sqlite.update.sql
diff options
context:
space:
mode:
Diffstat (limited to 'SQL/sqlite.update.sql')
-rw-r--r--SQL/sqlite.update.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/SQL/sqlite.update.sql b/SQL/sqlite.update.sql
index 2db782153..78e283e2d 100644
--- a/SQL/sqlite.update.sql
+++ b/SQL/sqlite.update.sql
@@ -140,3 +140,9 @@ INSERT INTO users (user_id, username, mail_host, alias, created, last_login, lan
CREATE INDEX ix_users_username ON users(username);
CREATE INDEX ix_users_alias ON users(alias);
DROP TABLE tmp_users;
+
+-- Updates from version 0.4.2
+
+DROP INDEX ix_users_username;
+CREATE UNIQUE INDEX ix_users_username ON users(username, mail_host);
+