ente/server/migrations/83_fix_ott_index.up.sql
2024-04-09 11:14:44 +05:30

9 lines
No EOL
198 B
PL/PgSQL

BEGIN;
ALTER TABLE
otts DROP CONSTRAINT IF EXISTS unique_otts_emailhash_ott;
ALTER TABLE
otts
ADD
CONSTRAINT unique_otts_emailhash_app_ott UNIQUE (ott,app, email_hash);
COMMIT;