-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDP-1156 Remove
email_sender_type
and sms_sender_type
from tenant…
… configuration (#262)
- Loading branch information
1 parent
28eb2e3
commit 671141e
Showing
13 changed files
with
61 additions
and
327 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
db/migrations/admin-migrations/2024-04-16-alter-tenants-table-drop-sms-email-type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- +migrate Up | ||
ALTER TABLE public.tenants | ||
DROP COLUMN email_sender_type, | ||
DROP COLUMN sms_sender_type; | ||
|
||
DROP TYPE public.email_sender_type; | ||
DROP TYPE public.sms_sender_type; | ||
|
||
-- +migrate Down | ||
|
||
CREATE TYPE public.email_sender_type AS ENUM ('AWS_EMAIL', 'DRY_RUN'); | ||
CREATE TYPE public.sms_sender_type AS ENUM ('TWILIO_SMS', 'AWS_SMS', 'DRY_RUN'); | ||
|
||
ALTER TABLE public.tenants | ||
ADD COLUMN email_sender_type email_sender_type DEFAULT 'DRY_RUN'::email_sender_type, | ||
ADD COLUMN sms_sender_type sms_sender_type DEFAULT 'DRY_RUN'::sms_sender_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.