use lower case in audit-log and rbac tables
This commit is contained in:
parent
ea2d2c9100
commit
7376301ed4
@ -109,6 +109,8 @@ create or replace procedure create_journal(targetTable varchar)
|
|||||||
declare
|
declare
|
||||||
createTriggerSQL varchar;
|
createTriggerSQL varchar;
|
||||||
begin
|
begin
|
||||||
|
targetTable := lower(targetTable);
|
||||||
|
|
||||||
createTriggerSQL = 'CREATE TRIGGER ' || targetTable || '_journal' ||
|
createTriggerSQL = 'CREATE TRIGGER ' || targetTable || '_journal' ||
|
||||||
' AFTER INSERT OR UPDATE OR DELETE ON ' || targetTable ||
|
' AFTER INSERT OR UPDATE OR DELETE ON ' || targetTable ||
|
||||||
' FOR EACH ROW EXECUTE PROCEDURE tx_journal_trigger()';
|
' FOR EACH ROW EXECUTE PROCEDURE tx_journal_trigger()';
|
||||||
|
@ -97,6 +97,8 @@ create or replace procedure generateRbacIdentityView(targetTable text, idNameExp
|
|||||||
declare
|
declare
|
||||||
sql text;
|
sql text;
|
||||||
begin
|
begin
|
||||||
|
targettable := lower(targettable);
|
||||||
|
|
||||||
-- create a view to the target main table which maps an idName to the objectUuid
|
-- create a view to the target main table which maps an idName to the objectUuid
|
||||||
sql = format($sql$
|
sql = format($sql$
|
||||||
create or replace view %1$s_iv as
|
create or replace view %1$s_iv as
|
||||||
@ -140,6 +142,8 @@ create or replace procedure generateRbacRestrictedView(targetTable text, orderBy
|
|||||||
declare
|
declare
|
||||||
sql text;
|
sql text;
|
||||||
begin
|
begin
|
||||||
|
targetTable := lower(targetTable);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Creates a restricted view based on the 'view' permission of the current subject.
|
Creates a restricted view based on the 'view' permission of the current subject.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user