ente/server/migrations/58_update_ott_unique_constraint.up.sql

8 lines
148 B
MySQL
Raw Normal View History

2024-03-01 08:07:01 +00:00
ALTER TABLE
otts DROP CONSTRAINT otts_ott_key;
ALTER TABLE
otts
ADD
CONSTRAINT unique_otts_emailhash_ott UNIQUE (ott, email_hash);