@medusajs/index
Version:
Medusa Index module
12 lines • 907 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Migration20231019174230 = void 0;
const migrations_1 = require("@mikro-orm/migrations");
class Migration20231019174230 extends migrations_1.Migration {
async up() {
this.addSql(`create table IF NOT EXISTS "index_data" ("id" text not null, "name" text not null, "data" jsonb not null default '{}', constraint "index_data_pkey" primary key ("id", "name")) PARTITION BY LIST("name");`);
this.addSql(`create table IF NOT EXISTS "index_relation" ("id" bigserial, "pivot" text not null, "parent_id" text not null, "parent_name" text not null, "child_id" text not null, "child_name" text not null, constraint "index_relation_pkey" primary key ("id", "pivot")) PARTITION BY LIST("pivot");`);
}
}
exports.Migration20231019174230 = Migration20231019174230;
//# sourceMappingURL=Migration20231019174230.js.map