chore(): Migration generator fix generated import (#14315)
* chore(): Migration generator fix generated import * Create two-olives-try.md * feedback
This commit is contained in:
committed by
GitHub
parent
c8a7122ba9
commit
d813fc4ff9
@@ -1,13 +1,15 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
||||
|
||||
export class Migration20251121123942 extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table if exists "notification" add column if not exists "from" text null;`);
|
||||
this.addSql(
|
||||
`alter table if exists "notification" add column if not exists "from" text null;`
|
||||
)
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table if exists "notification" drop column if exists "from";`);
|
||||
this.addSql(
|
||||
`alter table if exists "notification" drop column if exists "from";`
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
||||
|
||||
export class Migration20251121150408 extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table if exists "notification" add column if not exists "provider_data" jsonb null;`);
|
||||
this.addSql(
|
||||
`alter table if exists "notification" add column if not exists "provider_data" jsonb null;`
|
||||
)
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table if exists "notification" drop column if exists "provider_data";`);
|
||||
this.addSql(
|
||||
`alter table if exists "notification" drop column if exists "provider_data";`
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user