mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
766be9de3f
We don't want to show this error message as we know of this behaviour See: https://knexjs.org/guide/query-builder.html#insert Signed-off-by: Philip Molares <philip.molares@udo.edu>
26 lines
613 B
TypeScript
26 lines
613 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',
|
|
},
|
|
useNullAsDefault: true,
|
|
migrations: {
|
|
directory: './src/database/migrations',
|
|
},
|
|
seeds: {
|
|
directory: './src/database/seeds',
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|