12 lines
237 B
JavaScript
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();
|
|
}
|