UI: DB: Move persistent pragma to migration.

This commit is contained in:
Nodir Temirkhodjaev 2019-03-30 14:19:51 +05:00
parent 2d027e8e1a
commit dacf6a967a
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,6 @@
const char * const DatabaseSql::sqlPragmas =
"PRAGMA locking_mode=EXCLUSIVE;"
"PRAGMA journal_mode=WAL;"
"PRAGMA synchronous=NORMAL;"
;

View File

@ -1,5 +1,7 @@
PRAGMA user_version = 1;
PRAGMA journal_mode=WAL;
CREATE TABLE IF NOT EXISTS app(
app_id INTEGER PRIMARY KEY,
path TEXT UNIQUE NOT NULL,