mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
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:
committed by
Erik Michelson
parent
dc83e15e8f
commit
766be9de3f
@@ -12,6 +12,7 @@ const config: { [key: string]: Knex.Config } = {
|
||||
connection: {
|
||||
filename: './hedgedoc.sqlite',
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
migrations: {
|
||||
directory: './src/database/migrations',
|
||||
},
|
||||
|
||||
@@ -84,6 +84,7 @@ export function getKnexConfig(databaseConfig: DatabaseConfig): Knex.Config {
|
||||
connection: {
|
||||
filename: databaseConfig.name,
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
};
|
||||
case DatabaseType.POSTGRES:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user