1 import { Migration } from "@medusajs/framework/mikro-orm/migrations"
2
3 export class Migration20240115152146 extends Migration {
4 async up(): Promise<void> {
5 this.addSql(
6 'create table if not exists "sales_channel" ("id" text not null, "name" text not null, "description" text null, "is_disabled" boolean not null default false, "metadata" jsonb NULL, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "sales_channel_pkey" primary key ("id"));'
7 )
8 this.addSql(
9 'create index "IDX_sales_channel_deleted_at" on "sales_channel" ("deleted_at");'
10 )
11 }
12 }