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:
1 parent
046b0dcfa5
commit
470379e631
4 files changed
+42
-19
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user