fix(knex): remove sqlite error message

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>
This commit is contained in:
Philip Molares
2025-10-08 21:15:41 +02:00
committed by Erik Michelson
parent dc83e15e8f
commit 766be9de3f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ const config: { [key: string]: Knex.Config } = {
connection: {
filename: './hedgedoc.sqlite',
},
useNullAsDefault: true,
migrations: {
directory: './src/database/migrations',
},
+1
View File
@@ -84,6 +84,7 @@ export function getKnexConfig(databaseConfig: DatabaseConfig): Knex.Config {
connection: {
filename: databaseConfig.name,
},
useNullAsDefault: true,
};
case DatabaseType.POSTGRES:
return {