π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Fix unique constraint for ott for multiple apps
Neeraj Gupta6bf22fa8647f
diff --git a/server/migrations/83_fix_ott_index.down.sql b/server/migrations/83_fix_ott_index.down.sqlnew file mode 100644index 0000000000..571df81a59--- /dev/null+++ b/server/migrations/83_fix_ott_index.down.sql@@ -0,0 +1,11 @@++-- Add unique index on otts for email_hash,app,ott+BEGIN;+ALTER TABLE+ otts DROP CONSTRAINT unique_otts_emailhash_ott;++ALTER TABLE+ otts+ ADD+ CONSTRAINT unique_otts_emailhash_app_ott UNIQUE (ott,app, email_hash);+COMMIT;diff --git a/server/migrations/83_fix_ott_index.up.sql b/server/migrations/83_fix_ott_index.up.sqlnew file mode 100644index 0000000000..096ded0d71--- /dev/null+++ b/server/migrations/83_fix_ott_index.up.sql@@ -0,0 +1,2 @@+DROP TRIGGER IF EXISTS update_location_tag_updated_at ON location_tag;+DROP TABLE location_tag;