Move properties of phones to the phone, not contact_phone
This makes sense because there will naturally be cases where multiple districts have the same phone number mapped to different contacts.
This commit is contained in:
parent
f957dc6982
commit
7b04822a9b
14 changed files with 143 additions and 104 deletions
10
db/migrations/00154_comms_contact_phone_rework.sql
Normal file
10
db/migrations/00154_comms_contact_phone_rework.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- +goose Up
|
||||
ALTER TABLE comms.contact_phone
|
||||
DROP COLUMN can_sms,
|
||||
DROP COLUMN confirmed_message_id,
|
||||
DROP COLUMN stop_message_id;
|
||||
ALTER TABLE comms.phone
|
||||
ADD COLUMN confirmed_message_id INTEGER REFERENCES comms.text_log(id),
|
||||
ADD COLUMN stop_message_id INTEGER REFERENCES comms.text_log(id),
|
||||
DROP COLUMN is_subscribed,
|
||||
DROP COLUMN status;
|
||||
Loading…
Add table
Add a link
Reference in a new issue