diff --git a/packages/core/src/entity/collection/collection-translation.entity.ts b/packages/core/src/entity/collection/collection-translation.entity.ts index 486d6b5be6..ab2b1c798e 100644 --- a/packages/core/src/entity/collection/collection-translation.entity.ts +++ b/packages/core/src/entity/collection/collection-translation.entity.ts @@ -19,7 +19,9 @@ export class CollectionTranslation extends VendureEntity implements Translation< @Column() name: string; - @Column() slug: string; + @Index({ unique: false }) + @Column() + slug: string; @Column('text') description: string; diff --git a/packages/core/src/entity/product/product-translation.entity.ts b/packages/core/src/entity/product/product-translation.entity.ts index d48c03aed4..37007014b7 100644 --- a/packages/core/src/entity/product/product-translation.entity.ts +++ b/packages/core/src/entity/product/product-translation.entity.ts @@ -19,7 +19,9 @@ export class ProductTranslation extends VendureEntity implements Translation