mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-29 08:06:27 +00:00
7 lines
325 B
SQL
7 lines
325 B
SQL
DO $$ BEGIN
|
|
IF EXISTS (SELECT 1 FROM cloud_link_mailboxes WHERE smtp_cloud_account_id IS NOT NULL) THEN
|
|
RAISE EXCEPTION 'Cloud SMTP associations must remain available; roll back the application without removing this column';
|
|
END IF;
|
|
END $$;
|
|
ALTER TABLE cloud_link_mailboxes DROP COLUMN smtp_cloud_account_id;
|