Fix(medusa): duplicated migration (#5029)

Fix duplicated migration class name
This commit is contained in:
Carlos R. L. Rodrigues
2023-09-12 17:15:47 -03:00
committed by GitHub
parent 30863fee52
commit 05fcfd803e
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Fix duplicated migration - AddTimestempsToProductShippingProfiles1692870898425

View File

@@ -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<void> {
await queryRunner.query(`
ALTER TABLE "product_shipping_profile" ADD COLUMN IF NOT EXISTS "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now();