Skip to content

Commit

Permalink
feat: add legacy_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Zorkin committed Dec 18, 2024
1 parent a3becaf commit a6cb6fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 101 deletions.
6 changes: 4 additions & 2 deletions etl/nifi_scripts/compliance_report.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,9 @@ def prepareStatements(Connection conn) {
create_user,
create_date,
update_user,
update_date
) VALUES (?, ?, ?, NULL, ?, ?, ?::SupplementalInitiatorType, ?::ReportingFrequency, ?, ?, ?, ?, ?, ?)
update_date,
legacy_id
) VALUES (?, ?, ?, NULL, ?, ?, ?::SupplementalInitiatorType, ?::ReportingFrequency, ?, ?, ?, ?, ?, ?, ?)
RETURNING compliance_report_id
"""

Expand Down Expand Up @@ -867,6 +868,7 @@ def insertComplianceReport(PreparedStatement stmt, Map report, String groupUuid,
stmt.setTimestamp(11, report.create_timestamp ?: Timestamp.valueOf("1970-01-01 00:00:00"))
stmt.setString(12, updateUser)
stmt.setTimestamp(13, report.update_timestamp ?: report.create_timestamp ?: Timestamp.valueOf("1970-01-01 00:00:00"))
stmt.setInt(14, report.compliance_report_id)

def rs = null
try {
Expand Down
99 changes: 0 additions & 99 deletions etl/nifi_scripts/transactions.groovy

This file was deleted.

0 comments on commit a6cb6fa

Please sign in to comment.