use lower case in audit-log and rbac tables

This commit is contained in:
Michael Hoennig 2022-10-19 07:39:10 +02:00
parent ea2d2c9100
commit 7376301ed4
2 changed files with 6 additions and 0 deletions

View File

@ -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()';

View File

@ -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.
*/