修正RT数据库脚本丢失recipe_cell_access_permission_whitelist创建语句的问题。
This commit is contained in:
parent
2f70f6e1b5
commit
c5e398e48e
|
@ -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;
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue