The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
export class Migration20260804000000 extends Migration {
override async up(): Promise<void> {
this.addSql(
`ALTER TABLE "offer" ADD COLUMN IF NOT EXISTS "manage_inventory" boolean NOT NULL DEFAULT true;`,
)
this.addSql(
`ALTER TABLE "offer" ADD COLUMN IF NOT EXISTS "allow_backorder" boolean NOT NULL DEFAULT false;`,
)
}
override async down(): Promise<void> {
this.addSql(`ALTER TABLE "offer" DROP COLUMN IF EXISTS "manage_inventory";`)
this.addSql(`ALTER TABLE "offer" DROP COLUMN IF EXISTS "allow_backorder";`)
}
}