From 05fcfd803e5f06bf29354b20eb57bbc9c2c72d8e Mon Sep 17 00:00:00 2001 From: "Carlos R. L. Rodrigues" <37986729+carlos-r-l-rodrigues@users.noreply.github.com> Date: Tue, 12 Sep 2023 17:15:47 -0300 Subject: [PATCH] Fix(medusa): duplicated migration (#5029) Fix duplicated migration class name --- .changeset/tender-cups-play.md | 5 +++++ ...2870898425-add-timestemps-to-product-shipping-profiles.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/tender-cups-play.md diff --git a/.changeset/tender-cups-play.md b/.changeset/tender-cups-play.md new file mode 100644 index 0000000000..a8c1bed142 --- /dev/null +++ b/.changeset/tender-cups-play.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +Fix duplicated migration - AddTimestempsToProductShippingProfiles1692870898425 diff --git a/packages/medusa/src/migrations/1692870898425-add-timestemps-to-product-shipping-profiles.ts b/packages/medusa/src/migrations/1692870898425-add-timestemps-to-product-shipping-profiles.ts index 2d0eb81294..1b077305d2 100644 --- a/packages/medusa/src/migrations/1692870898425-add-timestemps-to-product-shipping-profiles.ts +++ b/packages/medusa/src/migrations/1692870898425-add-timestemps-to-product-shipping-profiles.ts @@ -3,7 +3,9 @@ import IsolateProductDomain from "../loaders/feature-flags/isolate-product-domai export const featureFlag = IsolateProductDomain.key -export class LineItemProductId1692870898424 implements MigrationInterface { +export class AddTimestempsToProductShippingProfiles1692870898425 + implements MigrationInterface +{ public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(` ALTER TABLE "product_shipping_profile" ADD COLUMN IF NOT EXISTS "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now();