From 005a3a14c001809dcb4a570ca7eaed2dfa1406f6 Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Tue, 5 Dec 2023 19:24:18 +0530 Subject: [PATCH] add a comment --- supabase/migrations/20231205051816_add_default_version.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supabase/migrations/20231205051816_add_default_version.sql b/supabase/migrations/20231205051816_add_default_version.sql index f5b9c4ee..cb2fb8ac 100644 --- a/supabase/migrations/20231205051816_add_default_version.sql +++ b/supabase/migrations/20231205051816_add_default_version.sql @@ -1,6 +1,6 @@ -- The original semver domain defined in 20220117141507_semver.sql doesn't allow null -- app.semver_struct values, but we need a nullable app.semver column for the new --- default_version_struct column in the app.packages table (see alter table app.package below). +-- default_version_struct column in the app.packages table (see alter table app.packages below). -- So we modify the `is_valid` function such that it returns true if the input version itself is -- null. All the existing tables where app.semver domain is used already have an additional -- non null constraint, so their behaviour doesn't change. @@ -66,6 +66,7 @@ create or replace view public.packages as limit 1 ) newest_ver; +-- grant insert and update permissions to authenticated users on the new default_version_struct column grant insert (partial_name, handle, control_description, control_relocatable, control_requires, default_version_struct) on app.packages to authenticated;