-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Insert transactions endpoint (Transaction monitoring) (#2171)
- Loading branch information
1 parent
6f00953
commit f1c8e7d
Showing
39 changed files
with
1,096 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "services/workflows-service/prisma/data-migrations"] | ||
path = services/workflows-service/prisma/data-migrations | ||
url = [email protected]:ballerine-io/wf-data-migration.git | ||
ignore = dirty | ||
ignore = all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule data-migrations
updated
from 479921 to e2be2c
17 changes: 17 additions & 0 deletions
17
...rations/20240305125152_fix_correlation_unique_and_remove_tm_denormalization/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- Remove TransactionRecord unique correlationId | ||
DROP INDEX "TransactionRecord_transactionCorrelationId_key"; | ||
|
||
-- Remove TransactionRecord<>EndUser/Business denormalization | ||
ALTER TABLE "TransactionRecord" DROP CONSTRAINT "TransactionRecord_businessId_fkey"; | ||
ALTER TABLE "TransactionRecord" DROP CONSTRAINT "TransactionRecord_endUserId_fkey"; | ||
ALTER TABLE "TransactionRecord" DROP COLUMN "businessId", DROP COLUMN "endUserId"; | ||
|
||
-- Fix EndUser/Business unique correlationId | ||
CREATE UNIQUE INDEX "Business_projectId_correlationId_key" ON "Business"("projectId", "correlationId"); | ||
CREATE UNIQUE INDEX "EndUser_projectId_correlationId_key" ON "EndUser"("projectId", "correlationId"); | ||
DROP INDEX "Business_correlationId_key"; | ||
DROP INDEX "EndUser_correlationId_key"; | ||
|
||
-- Drop unnecessary Counterparty type | ||
ALTER TABLE "Counterparty" DROP COLUMN "type"; | ||
DROP TYPE "CounterpartyType"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.