X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=SQL%2Fpostgres.update.sql;h=0ae8d3f7fda5cab464a9ac98e8e443546fd336e9;hb=511160353722ebec8c258ddd6fa963ec8851eede;hp=444caf6f6ca47cf6e9948c499b9c6c2d29a6c374;hpb=4212156c5c79d2f58342feb0d3ed1893f177bcab;p=roundcube.git diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index 444caf6..0ae8d3f 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -85,6 +85,7 @@ ALTER TABLE users ALTER last_login SET DEFAULT NULL; -- Updates from version 0.4.2 DROP INDEX users_username_id_idx; -ALTER TABLE users ADD UNIQUE (username, mail_host); +ALTER TABLE users ADD CONSTRAINT users_username_key UNIQUE (username, mail_host); ALTER TABLE contacts ALTER email TYPE varchar(255); +TRUNCATE messages;