Files
medreport_mrb2b/supabase/migrations/20250908092531_add_clinic_key.sql
2025-09-17 18:11:13 +03:00

12 lines
512 B
SQL

ALTER TABLE medreport.connected_online_providers ADD COLUMN key text not null DEFAULT ''; -- avoid conflict with already existing data, will be filled on next sync
ALTER TABLE medreport.connected_online_providers
ALTER key DROP DEFAULT;
ALTER TABLE medreport.connected_online_providers ADD COLUMN address text not null DEFAULT '';
ALTER TABLE medreport.connected_online_providers
ALTER key DROP DEFAULT;
ALTER TABLE medreport.connected_online_services
ALTER COLUMN sync_id TYPE bigint
USING sync_id::bigint;