From b6013a11f8800aa37edfb9c383f8db29b08af455 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Thu, 7 Apr 2016 15:03:34 +0900 Subject: [PATCH] Set db journal mode to WAL Change-Id: Ibe2dba2da41dc74d28bf2229977dbf0bd27d9039 Signed-off-by: Sangyoon Jang --- include/db-schema.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/db-schema.h b/include/db-schema.h index 19efbcd..74246a6 100644 --- a/include/db-schema.h +++ b/include/db-schema.h @@ -18,7 +18,7 @@ #define __RUA_SCHEMA_H__ #define CREATE_RUA_HISTORY_TABLE " \ -PRAGMA journal_mode = PERSIST; \ +PRAGMA journal_mode = WAL; \ \ CREATE TABLE IF NOT EXISTS rua_history ( \ pkg_name TEXT, \ @@ -29,6 +29,8 @@ CREATE TABLE IF NOT EXISTS rua_history ( \ );" #define CREATE_RUA_STAT_TABLE " \ +PRAGMA journal_mode = WAL; \ +\ CREATE TABLE if not exists rua_panel_stat ( \ caller_panel TEXT NOT NULL, \ rua_stat_tag TEXT NOT NULL, \ -- 2.7.4