summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSangyoon Jang <s89.jang@samsung.com>2016-04-07 15:03:34 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2016-07-07 10:13:16 +0900
commitb6013a11f8800aa37edfb9c383f8db29b08af455 (patch)
tree7ffe23abb1df27b905f09f683b5191b85128d7c4 /include
parent6a5bd6c0657ef23e487b3dab71e90efe7a7ff229 (diff)
downloadlibrua-b6013a11f8800aa37edfb9c383f8db29b08af455.tar.gz
librua-b6013a11f8800aa37edfb9c383f8db29b08af455.tar.bz2
librua-b6013a11f8800aa37edfb9c383f8db29b08af455.zip
Set db journal mode to WAL
Change-Id: Ibe2dba2da41dc74d28bf2229977dbf0bd27d9039 Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/db-schema.h4
1 files changed, 3 insertions, 1 deletions
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, \