-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Remove ability to receive text messages
We are automating the following query ``` select * from service_sms_senders where service_id= 'service_id'; select * from inbound_numbers where service_id = 'service_id'; select * from service_permissions where service_id= 'service_id'; delete from service_permissions where service_id = 'service_id' and permission = 'inbound_sms'; delete from service_sms_senders where service_id = 'service_id' and inbound_number_id is not null; -- run one of the two following queries -- if we wish to release the number (if it has never been used) update inbound_numbers set service_id = null, updated_at = now() where service_id = 'service_id' and active; -- if we wish to archive the number instead (if it has been used before so we dont want new services receiving the prev service's messages) update inbound_numbers set service_id = null, updated_at = now(), active = false where service_id = 'service_id' and active; ``` - Remove inbound_sms permission from service - Remove service_sms_sender with inbound_number_id - Disassociate inbound_number with service - If the number is being release, leave 'active' status as True, if being archived, update 'active' to False
- Loading branch information
Showing
9 changed files
with
315 additions
and
8 deletions.
There are no files selected for viewing
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
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.