Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jSylvestre
Copy link
Member

DB Change

@jSylvestre
Copy link
Member Author

jSylvestre commented Feb 11, 2025

UPDATE jr
SET jr.SavedTransactionId = t.Id
FROM dbo.JournalRequests jr
JOIN dbo.Transactions t ON jr.Id = t.JournalRequestId;

Then to catch the rest:
UPDATE JR
SET JR.SavedTransactionId = TSE.TransactionId
FROM dbo.JournalRequests JR
JOIN dbo.TransactionStatusEvents TSE
ON TSE.EventDetails LIKE '%' + CAST(JR.RequestId AS NVARCHAR(36)) + '%'
WHERE JR.SavedTransactionId IS NULL;

@jSylvestre
Copy link
Member Author

Close #443 But need to run update scripts above in order.

@jSylvestre jSylvestre marked this pull request as ready for review February 11, 2025 22:15
@jSylvestre jSylvestre requested a review from a team as a code owner February 11, 2025 22:15
Copy link
Contributor

@sprucely sprucely left a comment

Choose a reason for hiding this comment

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

Didn't test, but code looks okay. Is there a reason you didn't include those UPDATE queries in the migration? It's pretty easy to do via migrationBuilder.Sql().

@jSylvestre
Copy link
Member Author

Didn't test, but code looks okay. Is there a reason you didn't include those UPDATE queries in the migration? It's pretty easy to do via migrationBuilder.Sql().

Was just going to manually do it after.

@jSylvestre jSylvestre merged commit d3e32ed into master Feb 11, 2025
5 checks passed
@jSylvestre jSylvestre deleted the JCS/LookupByRequestId branch February 11, 2025 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants