From dfd26d930efcb6517c49fce5c0a70ba565c89e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Tue, 24 Dec 2019 00:52:04 +0100 Subject: [PATCH] Add huge warnings --- scripts-available/CDB_Organizations.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts-available/CDB_Organizations.sql b/scripts-available/CDB_Organizations.sql index 94e228e..68f6338 100644 --- a/scripts-available/CDB_Organizations.sql +++ b/scripts-available/CDB_Organizations.sql @@ -6,6 +6,13 @@ AS $$ $$ LANGUAGE SQL STABLE PARALLEL SAFE; + +----- ########################## WARNING ########################## +----- The code below creates a new role for the organization but +----- only when the extension is INSTALLED in a database, i.e. it +----- won't work if you clone a database that has it installed. +----- If you do, you need to update the extension to next and back +----- ########################## WARNING ########################## DO LANGUAGE 'plpgsql' $$ DECLARE cdb_org_member_role_name TEXT; @@ -38,6 +45,12 @@ AS $$ $$ LANGUAGE SQL STABLE PARALLEL SAFE; +----- ########################## WARNING ########################## +----- The code below creates a new role for the organization but +----- only when the extension is INSTALLED in a database, i.e. it +----- won't work if you clone a database that has it installed. +----- If you do, you need to update the extension to next and back +----- ########################## WARNING ########################## -- Administrator role creation on extension install DO LANGUAGE 'plpgsql' $$ DECLARE