fix(backoffice): support VPD policy notes on Smilegate schema
This commit is contained in:
@@ -130,6 +130,21 @@ begin
|
|||||||
)');
|
)');
|
||||||
create_if_missing('create sequence sg_permission_seq start with 1 increment by 1 nocache');
|
create_if_missing('create sequence sg_permission_seq start with 1 increment by 1 nocache');
|
||||||
create_if_missing('create sequence sg_permission_rule_seq start with 1 increment by 1 nocache');
|
create_if_missing('create sequence sg_permission_rule_seq start with 1 increment by 1 nocache');
|
||||||
|
create_if_missing('create table sg_vpd_policy_note (
|
||||||
|
object_owner varchar2(128) not null,
|
||||||
|
object_name varchar2(128) not null,
|
||||||
|
policy_name varchar2(128) not null,
|
||||||
|
description varchar2(2000),
|
||||||
|
updated_at timestamp default systimestamp not null,
|
||||||
|
constraint sg_vpd_policy_note_pk primary key (object_owner, object_name, policy_name)
|
||||||
|
)');
|
||||||
|
create_if_missing('create table sg_vpd_filter_note (
|
||||||
|
function_owner varchar2(128) not null,
|
||||||
|
function_name varchar2(128) not null,
|
||||||
|
description varchar2(2000),
|
||||||
|
updated_at timestamp default systimestamp not null,
|
||||||
|
constraint sg_vpd_filter_note_pk primary key (function_owner, function_name)
|
||||||
|
)');
|
||||||
end;
|
end;
|
||||||
/
|
/
|
||||||
|
|
||||||
@@ -191,6 +206,10 @@ create or replace view cb_permission_rule as
|
|||||||
select rule_id, perm_id, rule_column, rule_type, rule_value from sg_permission_rule;
|
select rule_id, perm_id, rule_column, rule_type, rule_value from sg_permission_rule;
|
||||||
create or replace view cb_permission_column as
|
create or replace view cb_permission_column as
|
||||||
select permission_id, column_name from sg_permission_column;
|
select permission_id, column_name from sg_permission_column;
|
||||||
|
create or replace view cb_vpd_policy_note as
|
||||||
|
select object_owner, object_name, policy_name, description, updated_at from sg_vpd_policy_note;
|
||||||
|
create or replace view cb_vpd_filter_note as
|
||||||
|
select function_owner, function_name, description, updated_at from sg_vpd_filter_note;
|
||||||
|
|
||||||
-- PoC administrator access: both demo operators can manage and query every
|
-- PoC administrator access: both demo operators can manage and query every
|
||||||
-- Smilegate game-data object registered in SGMP_POC.
|
-- Smilegate game-data object registered in SGMP_POC.
|
||||||
|
|||||||
Reference in New Issue
Block a user