summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungki Lee <mk5004.lee@samsung.com>2017-11-20 18:28:24 +0900
committerMyungki Lee <mk5004.lee@samsung.com>2017-11-20 18:28:24 +0900
commit16a9d7c410dd8914702e3ff7af363a4f5b793726 (patch)
tree83275ff6d0ea0a49f63e2d6afa86f9686a479b0a
parente9b73fc40198f078aba567ed26780f3517f6b957 (diff)
downloadbadge-16a9d7c410dd8914702e3ff7af363a4f5b793726.tar.gz
badge-16a9d7c410dd8914702e3ff7af363a4f5b793726.tar.bz2
badge-16a9d7c410dd8914702e3ff7af363a4f5b793726.zip
Add integrity_check when db table create
Change-Id: I3102b4233f05bbbffd2fd087089f426bab8276dc Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-xsrc/badge_db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/badge_db.c b/src/badge_db.c
index 693903e..fa61e33 100755
--- a/src/badge_db.c
+++ b/src/badge_db.c
@@ -30,6 +30,7 @@
#define CREATE_BADGE_TABLE " \
PRAGMA journal_mode = PERSIST; \
PRAGMA synchronous = FULL; \
+PRAGMA integrity_check; \
CREATE TABLE IF NOT EXISTS badge_data ( \
uid INTEGER, \
pkgname TEXT NOT NULL, \