ente/server/migrations/19_add_encrypted_email_columns.down.sql
2024-03-01 13:37:01 +05:30

14 lines
336 B
SQL

ALTER TABLE users
DROP COLUMN encrypted_email,
DROP COLUMN email_decryption_nonce,
DROP COLUMN email_hash;
DROP INDEX users_email_hash_index;
ALTER TABLE users ALTER COLUMN email SET NOT NULL;
ALTER TABLE otts DROP COLUMN email_hash;
ALTER TABLE otts ALTER COLUMN email SET NOT NULL;
DROP INDEX otts_email_hash_index;