core(core-flows, medusa): remove request item return (#8146)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Migration } from "@mikro-orm/migrations"
|
||||
|
||||
export class Migration20240715102100 extends Migration {
|
||||
export class Migration20240715174100 extends Migration {
|
||||
async up(): Promise<void> {
|
||||
const sql = `
|
||||
DROP INDEX IF EXISTS "IDX_order_shipping_method_shipping_option_id";
|
||||
@@ -11,8 +11,6 @@ export class Migration20240715102100 extends Migration {
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_shipping_method_shipping_option_id" ON "order_shipping_method" (
|
||||
shipping_option_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
|
||||
|
||||
`
|
||||
|
||||
this.addSql(sql)
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
import { Migration } from "@mikro-orm/migrations"
|
||||
|
||||
export class Migration20240716081800 extends Migration {
|
||||
async up(): Promise<void> {
|
||||
const sql = `
|
||||
DROP INDEX IF EXISTS "IDX_order_line_item_variant_id";
|
||||
DROP INDEX IF EXISTS "IDX_order_line_item_product_id";
|
||||
|
||||
ALTER TABLE "order_line_item"
|
||||
ADD COLUMN if NOT exists "deleted_at" timestamptz NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_line_item_variant_id" ON "order_line_item" (
|
||||
variant_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_line_item_product_id" ON "order_line_item" (
|
||||
product_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
|
||||
|
||||
|
||||
DROP INDEX IF EXISTS "IDX_order_shipping_method_tax_line_shipping_method_id";
|
||||
|
||||
ALTER TABLE "order_shipping_method_tax_line"
|
||||
ADD COLUMN if NOT exists "deleted_at" timestamptz NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_shipping_method_tax_line_shipping_method_id" ON "order_shipping_method_tax_line" (
|
||||
shipping_method_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
|
||||
|
||||
DROP INDEX IF EXISTS "IDX_order_shipping_method_adjustment_shipping_method_id";
|
||||
|
||||
ALTER TABLE "order_shipping_method_adjustment"
|
||||
ADD COLUMN if NOT exists "deleted_at" timestamptz NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_shipping_method_adjustment_shipping_method_id" ON "order_shipping_method_adjustment" (
|
||||
shipping_method_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
|
||||
|
||||
|
||||
DROP INDEX IF EXISTS "IDX_order_line_item_tax_line_item_id";
|
||||
|
||||
ALTER TABLE "order_line_item_tax_line"
|
||||
ADD COLUMN if NOT exists "deleted_at" timestamptz NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_line_item_tax_line_item_id" ON "order_line_item_tax_line" (
|
||||
item_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
|
||||
DROP INDEX IF EXISTS "IDX_order_line_item_adjustment_item_id";
|
||||
|
||||
ALTER TABLE "order_line_item_adjustment"
|
||||
ADD COLUMN if NOT exists "deleted_at" timestamptz NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IDX_order_line_item_adjustment_item_id" ON "order_line_item_adjustment" (
|
||||
item_id
|
||||
) WHERE deleted_at IS NULL;
|
||||
`
|
||||
|
||||
this.addSql(sql)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user