Skip to content

Commit

Permalink
fix: Iris bank import failing due to long descriptions (#633)
Browse files Browse the repository at this point in the history
An issue was detected, where some descriptions of bank transactions exceed the column limit.
Since we can't know for certain how long a description is going to be, change description column from Varchar to Text
  • Loading branch information
sashko9807 authored May 15, 2024
1 parent 4351261 commit 8d4b6e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "bank_transactions" ALTER COLUMN "description" SET DATA TYPE TEXT;
2 changes: 1 addition & 1 deletion schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ model BankTransaction {
recipientIban String? @map("recipient_iban") @db.VarChar(34)
amount Float @default(0)
currency Currency @default(BGN)
description String @db.VarChar(200)
description String @db.Text
//Matched campaign payment code
matchedRef String? @map("matched_ref") @db.VarChar(100)
type BankTransactionType
Expand Down

0 comments on commit 8d4b6e7

Please sign in to comment.