Browse Source

fix(core): Remove text default values

Fixes #2113
Michael Bromley 2 years ago
parent
commit
dd21a82d1a

+ 1 - 1
packages/core/src/entity/payment-method/payment-method-translation.entity.ts

@@ -22,7 +22,7 @@ export class PaymentMethodTranslation
 
     @Column() name: string;
 
-    @Column('text', { default: '' }) description: string;
+    @Column('text', { nullable: true }) description: string;
 
     @Index()
     @ManyToOne(type => PaymentMethod, base => base.translations, { onDelete: 'CASCADE' })

+ 1 - 1
packages/core/src/entity/promotion/promotion-translation.entity.ts

@@ -19,7 +19,7 @@ export class PromotionTranslation extends VendureEntity implements Translation<P
 
     @Column() name: string;
 
-    @Column('text', { default: '' }) description: string;
+    @Column('text', { nullable: true }) description: string;
 
     @Index()
     @ManyToOne(type => Promotion, base => base.translations, { onDelete: 'CASCADE' })