@devx-commerce/plugin-gati
Version:
Gati ERP integration for Medusa
15 lines • 1.66 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Migration20250531022203 = void 0;
const migrations_1 = require("@mikro-orm/migrations");
class Migration20250531022203 extends migrations_1.Migration {
async up() {
this.addSql(`create table if not exists "collection_group_master" ("id" text not null, "collection_group_no" integer not null, "collection_group_code" text not null, "collection_group_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_group_master_pkey" primary key ("id"));`);
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_collection_group_master_deleted_at" ON "collection_group_master" (deleted_at) WHERE deleted_at IS NULL;`);
}
async down() {
this.addSql(`drop table if exists "collection_group_master" cascade;`);
}
}
exports.Migration20250531022203 = Migration20250531022203;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MzEwMjIyMDMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9jb2xsZWN0aW9uLWdyb3VwLW1hc3Rlci9taWdyYXRpb25zL01pZ3JhdGlvbjIwMjUwNTMxMDIyMjAzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUFrRDtBQUVsRCxNQUFhLHVCQUF3QixTQUFRLHNCQUFTO0lBRTNDLEtBQUssQ0FBQyxFQUFFO1FBQ2YsSUFBSSxDQUFDLE1BQU0sQ0FBQyx5WkFBeVosQ0FBQyxDQUFDO1FBQ3ZhLElBQUksQ0FBQyxNQUFNLENBQUMseUlBQXlJLENBQUMsQ0FBQztJQUN6SixDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyx5REFBeUQsQ0FBQyxDQUFDO0lBQ3pFLENBQUM7Q0FFRjtBQVhELDBEQVdDIn0=