diff options
Diffstat (limited to 'SQL/postgres.update.sql')
-rw-r--r-- | SQL/postgres.update.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index 2ad60298f..8f7054820 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -3,7 +3,7 @@ ALTER TABLE "messages" DROP body; ALTER TABLE "messages" ADD structure TEXT; -ALTER TABLE "messages" ADD UNIQUE (cache_key, uid); +ALTER TABLE "messages" ADD UNIQUE (user_id, cache_key, uid); ALTER TABLE "identities" ADD html_signature integer DEFAULT 0 NOT NULL; |