Remove the PRAGMA setting of journal_mode which attempted to revert to the default journal_mode (#1976)

The intention of the PRAGMA was to revert the databse back from WAL, however, this pragma is creating problems when multiple instances of continue are open

Co-authored-by: Rob Leidle <rleidle@tesla.com>
This commit is contained in:
Rob Leidle 2024-08-09 09:26:28 -07:00 • committed by GitHub
parent 1e3e8ebe40
commit c51260c8c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 6 deletions

View file

@ -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,

View file

@ -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;