Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Drop the AuditLog view so targetedms-create.sql (runs after this script) rebuilds it with the fixed recursive CTE.
SELECT core.fn_dropifexists('AuditLog', 'targetedms', 'VIEW', NULL);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary, though it's harmless. Just the version bump should be enough to trigger the drop/create pair.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WITH RECURSIVE logTree as (
, nxt.entryHash
, nxt.parentEntryHash
FROM targetedms.AuditLogEntry nxt
JOIN logTree prev ON prev.parentEntryHash = nxt.entryHash
JOIN logTree prev ON prev.entryHash = nxt.parentEntryHash
)
SELECT t.entryId
, e.documentguid
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/TargetedMSModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public String getName()
@Override
public Double getSchemaVersion()
{
return 26.008;
return 26.009;
}

@Override
Expand Down
Loading