hedgedoc/backend/knexfile.ts
Erik Michelson b696c1e661
feat(knex): initial knexjs migration
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-04-23 22:49:10 +02:00

21 lines
502 B
TypeScript

/*
* SPDX-FileCopyrightText: 2025 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { Knex } from 'knex';
/** This is used for the Knex CLI to create migrations during development */
const config: { [key: string]: Knex.Config } = {
development: {
client: 'better-sqlite3',
connection: {
filename: './hedgedoc.sqlite',
},
migrations: {
directory: './src/database/migrations',
},
},
};
module.exports = config;