Skip to content

Commit 8d4b6e7

Browse files
authored
fix: Iris bank import failing due to long descriptions (#633)
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
1 parent 4351261 commit 8d4b6e7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "bank_transactions" ALTER COLUMN "description" SET DATA TYPE TEXT;

schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ model BankTransaction {
625625
recipientIban String? @map("recipient_iban") @db.VarChar(34)
626626
amount Float @default(0)
627627
currency Currency @default(BGN)
628-
description String @db.VarChar(200)
628+
description String @db.Text
629629
//Matched campaign payment code
630630
matchedRef String? @map("matched_ref") @db.VarChar(100)
631631
type BankTransactionType

0 commit comments

Comments
 (0)