Skip to content

Commit

Permalink
added auditLogging to lookupsets (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
jallentxbiomed authored Jun 27, 2023
1 parent b1c1822 commit b9a68ad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/queries/snd/DeletedLookupSets.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
select
substring(qae.oldrecordmap, charindex('objectid=',qae.oldrecordmap, 0) + len('objectid='), 36) as objectid,
qae.date as modified

from auditLog.QueryUpdateAuditEvent as qae

WHERE qae.comment = 'A row was deleted.'
and qae.QueryName = 'LookupSets'
and qae.SchemaName = 'snd'
9 changes: 9 additions & 0 deletions resources/queries/snd/DeletedLookups.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
select
substring(qae.oldrecordmap, charindex('objectid=',qae.oldrecordmap, 0) + len('objectid='), 36) as objectid,
qae.date as modified

from auditLog.QueryUpdateAuditEvent as qae

WHERE qae.comment = 'A row was deleted.'
and qae.QueryName = 'Lookups'
and qae.SchemaName = 'snd'
1 change: 1 addition & 0 deletions resources/schemas/snd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
</columns>
</table>
<table tableName="LookupSets" tableDbType="TABLE">
<auditLogging>DETAILED</auditLogging>
<columns>
<column columnName="LookupSetId"/>
<column columnName="SetName"/>
Expand Down

0 comments on commit b9a68ad

Please sign in to comment.