@devx-commerce/plugin-gati
Version:
Gati ERP integration for Medusa
16 lines • 1.79 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Migration20250509174455 = void 0;
const migrations_1 = require("@mikro-orm/migrations");
class Migration20250509174455 extends migrations_1.Migration {
async up() {
this.addSql(`create table if not exists "shape_master" ("id" text not null, "shape_no" integer not null, "shape_for" text not null, "shape_code" text not null, "shape_name" text not null, "shape_alias_name" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "shape_master_pkey" primary key ("id"));`);
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_shape_master_shape_code" ON "shape_master" (shape_code) WHERE deleted_at IS NULL;`);
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_shape_master_deleted_at" ON "shape_master" (deleted_at) WHERE deleted_at IS NULL;`);
}
async down() {
this.addSql(`drop table if exists "shape_master" cascade;`);
}
}
exports.Migration20250509174455 = Migration20250509174455;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MDkxNzQ0NTUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zaGFwZS1tYXN0ZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDUwOTE3NDQ1NS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsdVlBQXVZLENBQUMsQ0FBQztRQUNyWixJQUFJLENBQUMsTUFBTSxDQUFDLG1IQUFtSCxDQUFDLENBQUM7UUFDakksSUFBSSxDQUFDLE1BQU0sQ0FBQyxtSEFBbUgsQ0FBQyxDQUFDO0lBQ25JLENBQUM7SUFFUSxLQUFLLENBQUMsSUFBSTtRQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLDhDQUE4QyxDQUFDLENBQUM7SUFDOUQsQ0FBQztDQUVGO0FBWkQsMERBWUMifQ==