From 0bad154971c3ef5567b07d9568d96fe3e5a50b93 Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Tue, 4 Aug 2026 09:56:39 +0200 Subject: [PATCH] fix: remove invalid default on CashboxExportSubscription.recipients MySQL/MariaDB reject a DEFAULT value on TEXT-backed columns (TypeORM's simple-array maps to TEXT), so table creation failed with "BLOB, TEXT, GEOMETRY or JSON column 'recipients' can't have a default value". The service always assigns recipients before saving, so no DB-level default was ever needed. Co-Authored-By: Claude Sonnet 5 --- .../entities/cashbox-export-subscription.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myteamwallet_backend/src/cashbox-export/entities/cashbox-export-subscription.entity.ts b/myteamwallet_backend/src/cashbox-export/entities/cashbox-export-subscription.entity.ts index eb71d6c..0f27533 100644 --- a/myteamwallet_backend/src/cashbox-export/entities/cashbox-export-subscription.entity.ts +++ b/myteamwallet_backend/src/cashbox-export/entities/cashbox-export-subscription.entity.ts @@ -12,7 +12,7 @@ export class CashboxExportSubscription extends EntityHelper { @JoinColumn() team: Team; - @Column({ type: 'simple-array', default: '' }) + @Column({ type: 'simple-array' }) recipients: string[]; @Column()