AK-21/Graphite-Industrial-Intelligence
0
1"use strict";2var __defProp = Object.defineProperty;3var __getOwnPropDesc = Object.getOwnPropertyDescriptor;4var __getOwnPropNames = Object.getOwnPropertyNames;5var __hasOwnProp = Object.prototype.hasOwnProperty;6var __export = (target, all) => {7 for (var name in all)8 __defProp(target, name, { get: all[name], enumerable: true });9};10var __copyProps = (to, from, except, desc) => {11 if (from && typeof from === "object" || typeof from === "function") {12 for (let key of __getOwnPropNames(from))13 if (!__hasOwnProp.call(to, key) && key !== except)14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });15 }16 return to;17};18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);19var migrator_exports = {};20__export(migrator_exports, {21 migrate: () => migrate22});23module.exports = __toCommonJS(migrator_exports);24var import_migrator = require("../migrator.cjs");25async function migrate(db, config) {26 const migrations = (0, import_migrator.readMigrationFiles)(config);27 await db.dialect.migrate(migrations, db.session, config);28}29// Annotate the CommonJS export names for ESM import in node:300 && (module.exports = {31 migrate32});33//# sourceMappingURL=migrator.cjs.map