chore(order): custom display id (#14024)
* chore(order): Accept a custom display generator option * chore(order): Accept a custom display generator option * wip * wip * finalize * Create tricky-olives-battle.md * fields * changeset * update integration tests * update migrations * fix changeset
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
||||
|
||||
export class Migration20251028172715 extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table if exists "notification" alter column "template" type text using ("template"::text);`);
|
||||
this.addSql(`alter table if exists "notification" alter column "template" drop not null;`);
|
||||
this.addSql(
|
||||
`alter table if exists "notification" alter column "template" type text using ("template"::text);`
|
||||
)
|
||||
this.addSql(
|
||||
`alter table if exists "notification" alter column "template" drop not null;`
|
||||
)
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table if exists "notification" alter column "template" type text using ("template"::text);`);
|
||||
this.addSql(`alter table if exists "notification" alter column "template" set not null;`);
|
||||
this.addSql(
|
||||
`alter table if exists "notification" alter column "template" type text using ("template"::text);`
|
||||
)
|
||||
this.addSql(
|
||||
`alter table if exists "notification" alter column "template" set not null;`
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user