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,4 +1,4 @@
|
||||
import { Migration } from "@mikro-orm/migrations"
|
||||
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
||||
import { ulid } from "ulid"
|
||||
|
||||
export class Migration20250924135437 extends Migration {
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { Migration } from "@mikro-orm/migrations"
|
||||
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
||||
|
||||
export class Migration20250929124701 extends Migration {
|
||||
override async up(): Promise<void> {
|
||||
// Step 1: Add the column as nullable
|
||||
this.addSql(
|
||||
`alter table "refund_reason" add column "code" text;`
|
||||
)
|
||||
this.addSql(`alter table "refund_reason" add column "code" text;`)
|
||||
|
||||
// Step 2: Populate the code column from label (convert to snake_case)
|
||||
this.addSql(`
|
||||
|
||||
Reference in New Issue
Block a user