@devx-commerce/plugin-gati
Version:
Gati ERP integration for Medusa
15 lines • 1.51 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Migration20250608221239 = void 0;
const migrations_1 = require("@mikro-orm/migrations");
class Migration20250608221239 extends migrations_1.Migration {
async up() {
this.addSql(`create table if not exists "erp_event" ("id" text not null, "datafor" text not null, "operation" text not null, "data" text[] not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "erp_event_pkey" primary key ("id"));`);
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_erp_event_deleted_at" ON "erp_event" (deleted_at) WHERE deleted_at IS NULL;`);
}
async down() {
this.addSql(`drop table if exists "erp_event" cascade;`);
}
}
exports.Migration20250608221239 = Migration20250608221239;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MDgyMjEyMzkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9lcnAtZXZlbnQvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDYwODIyMTIzOS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsMlRBQTJULENBQUMsQ0FBQztRQUN6VSxJQUFJLENBQUMsTUFBTSxDQUFDLDZHQUE2RyxDQUFDLENBQUM7SUFDN0gsQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsMkNBQTJDLENBQUMsQ0FBQztJQUMzRCxDQUFDO0NBRUY7QUFYRCwwREFXQyJ9