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