Raw
1 import { Migration } from "@medusajs/framework/mikro-orm/migrations"
2
3 export class Migration20240617102917 extends Migration {
4 async up(): Promise<void> {
5 this.addSql(
6 'alter table "promotion_application_method" alter column "currency_code" type text using ("currency_code"::text);'
7 )
8
9 this.addSql(
10 'alter table "promotion_application_method" alter column "currency_code" drop not null;'
11 )
12 }
13
14 async down(): Promise<void> {
15 this.addSql(
16 'alter table "promotion_application_method" alter column "currency_code" type text using ("currency_code"::text);'
17 )
18 this.addSql(
19 'alter table "promotion_application_method" alter column "currency_code" set not null;'
20 )
21 }
22 }