dukcapil/migrations/000029_update_incoming_letter_department_recipients.down.sql
2025-09-08 12:24:37 +07:00

12 lines
291 B
PL/PgSQL

BEGIN;
-- Delete new setting
DELETE FROM app_settings WHERE key = 'INCOMING_LETTER_DEPARTMENT_RECIPIENTS';
-- Restore old setting
INSERT INTO app_settings(key, value)
VALUES
('INCOMING_LETTER_RECIPIENTS', '{"department_codes": ["aslog"]}'::jsonb)
ON CONFLICT (key) DO NOTHING;
COMMIT;