Files
jerapah-flow/db.js
T

12 lines
237 B
JavaScript

import knex from "knex";
import config from "./knexfile.js";
export const db = knex(config);
/**
* Apply pending migrations. Call once before registering workflows.
*/
export async function migrate() {
await db.migrate.latest();
}