* chore(): Move peer deps into a single package and re export from framework * WIP * update core packages * update cli and deps * update medusa * update exports path * remove analyze * update modules deps * finalise changes * fix yarn * fix import * Refactor peer dependencies into a single package Consolidate peer dependencies into one package and re-export from the framework. * update changeset * Update .changeset/brown-cows-sleep.md Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> * rm deps * fix deps * increase timeout * upgrade version * update versions * update versions * fixes * update lock * fix missing import * fix missing import --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
24 lines
1.1 KiB
TypeScript
24 lines
1.1 KiB
TypeScript
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
|
|
|
export class Migration20240628075401 extends Migration {
|
|
async up(): Promise<void> {
|
|
this.addSql(
|
|
'alter table if exists "notification_provider" add column if not exists "created_at" timestamptz not null default now(), add column "updated_at" timestamptz not null default now(), add column "deleted_at" timestamptz null;'
|
|
)
|
|
this.addSql(
|
|
'alter table if exists "notification_provider" alter column "channels" type text[] using ("channels"::text[]);'
|
|
)
|
|
this.addSql(
|
|
'alter table if exists "notification_provider" alter column "channels" set default \'{}\';'
|
|
)
|
|
|
|
this.addSql(
|
|
'alter table if exists "notification" add column if not exists "updated_at" timestamptz not null default now(), add column "deleted_at" timestamptz null;'
|
|
)
|
|
this.addSql('drop index if exists "IDX_notification_idempotency_key";')
|
|
this.addSql(
|
|
'CREATE UNIQUE INDEX IF NOT EXISTS "IDX_notification_idempotency_key_unique" ON "notification" (idempotency_key) WHERE deleted_at IS NULL;'
|
|
)
|
|
}
|
|
}
|