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:
parent
1e3e8ebe40
commit
c51260c8c8
2 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue