UNPKG

@devx-commerce/plugin-gati

Version:

Gati ERP integration for Medusa

15 lines 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Migration20250513122212 = void 0; const migrations_1 = require("@mikro-orm/migrations"); class Migration20250513122212 extends migrations_1.Migration { async up() { this.addSql(`create table if not exists "category_master" ("id" text not null, "grp_no" integer not null, "category_code" text not null, "category_name" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "category_master_pkey" primary key ("id"));`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_category_master_deleted_at" ON "category_master" (deleted_at) WHERE deleted_at IS NULL;`); } async down() { this.addSql(`drop table if exists "category_master" cascade;`); } } exports.Migration20250513122212 = Migration20250513122212; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MTMxMjIyMTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9jYXRlZ29yeS1tYXN0ZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDUxMzEyMjIxMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsb1ZBQW9WLENBQUMsQ0FBQztRQUNsVyxJQUFJLENBQUMsTUFBTSxDQUFDLHlIQUF5SCxDQUFDLENBQUM7SUFDekksQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsaURBQWlELENBQUMsQ0FBQztJQUNqRSxDQUFDO0NBRUY7QUFYRCwwREFXQyJ9