8000 add migration for pg_create_subscription grant · supabase/postgres@a84c2c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a84c2c7

Browse files
encimasoedirgo
authored andcommitted
add migration for pg_create_subscription grant
1 parent 52f0bbc commit a84c2c7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- migrate:up
2+
DO $$
3+
DECLARE
4+
major_version INT;
5+
BEGIN
6+
SELECT current_setting('server_version_num')::INT / 10000 INTO major_version;
7+
< 55F5 /code>
8+
IF major_version >= 16 THEN
9+
GRANT pg_create_subscription TO postgres;
10+
END IF;
11+
END $$;
12+
13+
-- migrate:down

0 commit comments

Comments
 (0)
0