Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

422 B
Raw Blame
import { Migration } from "@medusajs/framework/mikro-orm/migrations"

export class Migration20261021120000 extends Migration {
  override async up(): Promise<void> {
    this.addSql(
      `ALTER TABLE IF EXISTS "order_group" ADD COLUMN IF NOT EXISTS "metadata" jsonb NULL;`
    )
  }

  override async down(): Promise<void> {
    this.addSql(`ALTER TABLE IF EXISTS "order_group" DROP COLUMN IF EXISTS "metadata";`)
  }
}