fix(medusa, admin-ui): Add deleted_at to Return Reason unique constraint (#4834)

* Update return reason create to upsert

* Create strange-wombats-invite.md

* Revert upsert, make value index only apply on non-deleted entities
This commit is contained in:
Rares Stefan authored and GitHub committed 2023-08-29 19:26:58 +02:00
1 parent 046b0dcfa5
commit 470379e631
4 files changed
+42 -19

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import { generateEntityId } from "../utils/generate-entity-id"
@Entity()
export class ReturnReason extends SoftDeletableEntity {
@Index({ unique: true })
@Index({ unique: true, where: "deleted_at IS NULL" })
@Column()
value: string