Compare commits

..

1 Commits

Author SHA1 Message Date
jc21
84fb2729af Merge pull request #5318 from NginxProxyManager/develop
v2.14.0
2026-02-17 15:32:19 +10:00

View File

@@ -7,9 +7,6 @@ const mysqlEngine = 'mysql2';
const postgresEngine = 'pg'; const postgresEngine = 'pg';
const sqliteClientName = 'better-sqlite3'; const sqliteClientName = 'better-sqlite3';
// Not used for new setups anymore but may exist in legacy setups
const legacySqliteClientName = 'sqlite3';
let instance = null; let instance = null;
// 1. Load from config file first (not recommended anymore) // 1. Load from config file first (not recommended anymore)
@@ -187,7 +184,7 @@ const configGet = (key) => {
*/ */
const isSqlite = () => { const isSqlite = () => {
instance === null && configure(); instance === null && configure();
return instance.database.knex && [sqliteClientName, legacySqliteClientName].includes(instance.database.knex.client); return instance.database.knex && instance.database.knex.client === sqliteClientName;
}; };
/** /**