fix(medusa): Resolve issue with soft-delete and unique indexes in DB (#296)

This commit is contained in:
Oliver Windall Juhl
2021-07-01 14:59:44 +02:00
committed by GitHub
parent 8434ab7424
commit 6358f8fc75
13 changed files with 371 additions and 55 deletions
@@ -18,6 +18,7 @@ module.exports = async (connection, data = {}) => {
const coll = manager.create(ProductCollection, {
id: "test-collection",
handle: "test-collection",
title: "Test collection",
});
@@ -53,6 +54,7 @@ module.exports = async (connection, data = {}) => {
const p = manager.create(Product, {
id: "test-product",
handle: "test-product",
title: "Test product",
profile_id: defaultProfile.id,
description: "test-product-description",
@@ -73,6 +75,10 @@ module.exports = async (connection, data = {}) => {
id: "test-variant",
inventory_quantity: 10,
title: "Test variant",
sku: "test-sku",
ean: "test-ean",
upc: "test-upc",
barcode: "test-barcode",
product_id: "test-product",
prices: [{ id: "test-price", currency_code: "usd", amount: 100 }],
options: [{ id: "test-variant-option", value: "Default variant" }],