From 5da5c8201eca4b767f9415571b5c336bd876e51d Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Tue, 5 Dec 2023 21:18:17 +0530 Subject: [PATCH] only calling pgtle.set_default_version if default_version is non-null --- .../20231205101809_dbdev_supports_default_version.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/supabase/migrations/20231205101809_dbdev_supports_default_version.sql b/supabase/migrations/20231205101809_dbdev_supports_default_version.sql index d3c40b14..bf8323d6 100644 --- a/supabase/migrations/20231205101809_dbdev_supports_default_version.sql +++ b/supabase/migrations/20231205101809_dbdev_supports_default_version.sql @@ -205,7 +205,11 @@ begin json_array_elements(contents) as r loop - perform pgtle.set_default_version(rec_package_name, rec_default_ver); + if rec_default_ver is not null then + perform pgtle.set_default_version(rec_package_name, rec_default_ver); + else + raise notice using errcode='22000', message=format('DBDEV INFO: missing default version'); + end if; end loop;