From c5e398e48e2f4f664e43a8ee889d087c1558b1ec Mon Sep 17 00:00:00 2001 From: Liang Su Date: Thu, 7 Mar 2024 20:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3RT=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=B8=A2=E5=A4=B1recipe=5Fcell=5Faccess=5Fpe?= =?UTF-8?q?rmission=5Fwhitelist=E5=88=9B=E5=BB=BA=E8=AF=AD=E5=8F=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SicRT/Config/DBModel.sql | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/SicRT/Config/DBModel.sql b/SicRT/Config/DBModel.sql index ce2938e5..913aab6d 100644 --- a/SicRT/Config/DBModel.sql +++ b/SicRT/Config/DBModel.sql @@ -32,6 +32,31 @@ begin GRANT SELECT ON TABLE credentials_history TO postgres; end if; + ------------------------------------------------------------------------------------------------ + -- + if not exists(select * from information_schema.tables + where + table_catalog = CURRENT_CATALOG and table_schema = CURRENT_SCHEMA + and table_name = 'recipe_cell_access_permission_whitelist') then + + CREATE TABLE "recipe_cell_access_permission_whitelist" + ( + "uid" text NOT NULL, + "recipeName" text NOT NULL, + "stepUid" text NOT NULL, + "columnName" text NOT NULL, + "whoSet" text, + "whenSet" timestamp without time zone, + CONSTRAINT "recipe_cell_access_permission_whitelist_pkey" PRIMARY KEY ("uid") + ) + WITH ( + OIDS=FALSE + ); + ALTER TABLE "recipe_cell_access_permission_whitelist" + OWNER TO postgres; + GRANT SELECT ON TABLE "recipe_cell_access_permission_whitelist" TO postgres; + end if; + ------------------------------------------------------------------------------------------------ --