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
|
||||
createTriggerSQL varchar;
|
||||
begin
|
||||
targetTable := lower(targetTable);
|
||||
|
||||
createTriggerSQL = 'CREATE TRIGGER ' || targetTable || '_journal' ||
|
||||
' AFTER INSERT OR UPDATE OR DELETE ON ' || targetTable ||
|
||||
' FOR EACH ROW EXECUTE PROCEDURE tx_journal_trigger()';
|
||||
|
@ -97,6 +97,8 @@ create or replace procedure generateRbacIdentityView(targetTable text, idNameExp
|
||||
declare
|
||||
sql text;
|
||||
begin
|
||||
targettable := lower(targettable);
|
||||
|
||||
-- create a view to the target main table which maps an idName to the objectUuid
|
||||
sql = format($sql$
|
||||
create or replace view %1$s_iv as
|
||||
@ -140,6 +142,8 @@ create or replace procedure generateRbacRestrictedView(targetTable text, orderBy
|
||||
declare
|
||||
sql text;
|
||||
begin
|
||||
targetTable := lower(targetTable);
|
||||
|
||||
/*
|
||||
Creates a restricted view based on the 'view' permission of the current subject.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user