hedgedoc/backend/knexfile.ts
Philip Molares 4790705f0d
feat: add seeding
This allows us to get a pre-populated database to develop new functionality

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2025-04-23 22:49:11 +02:00

24 lines
585 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 and a seeded database during development */
const config: { [key: string]: Knex.Config } = {
development: {
client: 'better-sqlite3',
connection: {
filename: './hedgedoc.sqlite',
},
migrations: {
directory: './src/database/migrations',
},
seeds: {
directory: './src/database/seeds',
},
},
};
module.exports = config;