UNPKG

@devx-commerce/plugin-gati

Version:

Gati ERP integration for Medusa

16 lines 1.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Migration20250513122211 = void 0; const migrations_1 = require("@mikro-orm/migrations"); class Migration20250513122211 extends migrations_1.Migration { async up() { this.addSql(`create table if not exists "collection_master" ("id" text not null, "collection_no" integer not null, "collection_code" text not null, "collection_name" text not null, "mapping_id" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "collection_master_pkey" primary key ("id"));`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_collection_master_collection_code" ON "collection_master" (collection_code) WHERE deleted_at IS NULL;`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_collection_master_deleted_at" ON "collection_master" (deleted_at) WHERE deleted_at IS NULL;`); } async down() { this.addSql(`drop table if exists "collection_master" cascade;`); } } exports.Migration20250513122211 = Migration20250513122211; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MTMxMjIyMTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9jb2xsZWN0aW9uLW1hc3Rlci9taWdyYXRpb25zL01pZ3JhdGlvbjIwMjUwNTEzMTIyMjExLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUFrRDtBQUVsRCxNQUFhLHVCQUF3QixTQUFRLHNCQUFTO0lBRTNDLEtBQUssQ0FBQyxFQUFFO1FBQ2YsSUFBSSxDQUFDLE1BQU0sQ0FBQywyWEFBMlgsQ0FBQyxDQUFDO1FBQ3pZLElBQUksQ0FBQyxNQUFNLENBQUMsdUlBQXVJLENBQUMsQ0FBQztRQUNySixJQUFJLENBQUMsTUFBTSxDQUFDLDZIQUE2SCxDQUFDLENBQUM7SUFDN0ksQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsbURBQW1ELENBQUMsQ0FBQztJQUNuRSxDQUFDO0NBRUY7QUFaRCwwREFZQyJ9