From 1202b865297514b2044b31bea7075ec62217eec0 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 20 Jan 2025 09:45:42 -0800 Subject: [PATCH] IO-3101 Update default value for notification settings. --- .../down.sql | 3 +++ .../up.sql | 1 + 2 files changed, 4 insertions(+) create mode 100644 hasura/migrations/1737395115733_resolve_notification_settings_default_value/down.sql create mode 100644 hasura/migrations/1737395115733_resolve_notification_settings_default_value/up.sql diff --git a/hasura/migrations/1737395115733_resolve_notification_settings_default_value/down.sql b/hasura/migrations/1737395115733_resolve_notification_settings_default_value/down.sql new file mode 100644 index 000000000..577df2b58 --- /dev/null +++ b/hasura/migrations/1737395115733_resolve_notification_settings_default_value/down.sql @@ -0,0 +1,3 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."associations" alter column "notification_settings" set default jsonb_build_object(); diff --git a/hasura/migrations/1737395115733_resolve_notification_settings_default_value/up.sql b/hasura/migrations/1737395115733_resolve_notification_settings_default_value/up.sql new file mode 100644 index 000000000..6f4c9d6af --- /dev/null +++ b/hasura/migrations/1737395115733_resolve_notification_settings_default_value/up.sql @@ -0,0 +1 @@ +alter table "public"."associations" alter column "notification_settings" set default jsonb_build_object();