diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index f5a6a62fb..1e8a8245c 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -476,9 +476,6 @@ export default class DocsService { await runSqliteMigrations(db); - // This next line, setting the journal_mode, can be removed once all databases are back to the default - // journal_mode and not using WAL. - await db.exec("PRAGMA journal_mode=DELETE;"); await db.exec(`CREATE TABLE IF NOT EXISTS ${DocsService.sqlitebTableName} ( id INTEGER PRIMARY KEY AUTOINCREMENT, title STRING NOT NULL, diff --git a/core/indexing/refreshIndex.ts b/core/indexing/refreshIndex.ts index 9fdae99f2..26ca80cb6 100644 --- a/core/indexing/refreshIndex.ts +++ b/core/indexing/refreshIndex.ts @@ -91,9 +91,6 @@ export class SqliteDb { driver: sqlite3.Database, }); - // This next line, setting the journal_mode, can be removed once all databases are back to the default - // journal_mode and not using WAL. - const result = await SqliteDb.db.exec("PRAGMA journal_mode=DELETE;"); await SqliteDb.createTables(SqliteDb.db); return SqliteDb.db;