UNPKG

@devx-commerce/plugin-gati

Version:

Gati ERP integration for Medusa

16 lines 1.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Migration20250509190057 = void 0; const migrations_1 = require("@mikro-orm/migrations"); class Migration20250509190057 extends migrations_1.Migration { async up() { this.addSql(`create table if not exists "raw_master" ("id" text not null, "raw_no" integer not null, "raw_for" text not null, "raw_code" text not null, "raw_name" text not null, "raw_alias_name" text not null, "raw_mit_no" integer not null, "raw_mit_name" text not null, "material_group_id" integer null, "material_group" text null, "material_group_name" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "raw_master_pkey" primary key ("id"));`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_raw_master_raw_code" ON "raw_master" (raw_code) WHERE deleted_at IS NULL;`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_raw_master_deleted_at" ON "raw_master" (deleted_at) WHERE deleted_at IS NULL;`); } async down() { this.addSql(`drop table if exists "raw_master" cascade;`); } } exports.Migration20250509190057 = Migration20250509190057; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MDkxOTAwNTcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9yYXctbWFzdGVyL21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTA1MDkxOTAwNTcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQWtEO0FBRWxELE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLHFoQkFBcWhCLENBQUMsQ0FBQztRQUNuaUIsSUFBSSxDQUFDLE1BQU0sQ0FBQywyR0FBMkcsQ0FBQyxDQUFDO1FBQ3pILElBQUksQ0FBQyxNQUFNLENBQUMsK0dBQStHLENBQUMsQ0FBQztJQUMvSCxDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyw0Q0FBNEMsQ0FBQyxDQUFDO0lBQzVELENBQUM7Q0FFRjtBQVpELDBEQVlDIn0=