automation/medusa-upstream-review
| 1 | import { Migration } from "@medusajs/framework/mikro-orm/migrations"; |
| 2 | |
| 3 | export class Migration20241218091938 extends Migration { |
| 4 | |
| 5 | async up(): Promise<void> { |
| 6 | this.addSql('alter table if exists "cart_line_item" add column if not exists "is_custom_price" boolean not null default false;'); |
| 7 | } |
| 8 | |
| 9 | async down(): Promise<void> { |
| 10 | this.addSql('alter table if exists "cart_line_item" drop column if exists "is_custom_price";'); |
| 11 | } |
| 12 | |
| 13 | } |