diff options
author | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-03-13 13:28:48 +0100 |
---|---|---|
committer | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-03-13 15:33:07 +0100 |
commit | d89321911038079248de90043b93121d30221033 (patch) | |
tree | 4b69e9e1aa8ba3197f812e314cd40a58197184b9 /include | |
parent | cc94b25aa675fc061d456568f60fe56d536a540f (diff) | |
download | librua-d89321911038079248de90043b93121d30221033.tar.gz librua-d89321911038079248de90043b93121d30221033.tar.bz2 librua-d89321911038079248de90043b93121d30221033.zip |
Create a per user DB instead of a global DB
To fully support the multi-user architecture every user needs to have
its own DB since, in the case of librua, a global (system) DB doesn't
make much sense.
Bug-Tizen: PTREL-339
Change-Id: Id7c5ab27748cfe60cb998a956f06d5280fe1fe50
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/db-schema.h | 14 | ||||
-rwxr-xr-x | include/rua.h | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/include/db-schema.h b/include/db-schema.h index f405aea..df05dbd 100644 --- a/include/db-schema.h +++ b/include/db-schema.h @@ -23,12 +23,14 @@ #define __RUA_SCHEMA_H__ #define CREATE_RUA_HISTORY_TABLE " \ -create table if not exists rua_history ( \ -id INTEGER PRIMARY KEY, \ -pkg_name TEXT, \ -app_path TEXT, \ -arg TEXT, \ -launch_time INTEGER \ +PRAGMA journal_mode = PERSIST; \ +\ +CREATE TABLE IF NOT EXISTS rua_history ( \ + id INTEGER PRIMARY KEY, \ + pkg_name TEXT, \ + app_path TEXT, \ + arg TEXT, \ + launch_time INTEGER \ );" /* table index */ diff --git a/include/rua.h b/include/rua.h index 642e617..2bd8f51 100755 --- a/include/rua.h +++ b/include/rua.h @@ -20,7 +20,7 @@ */ /** - * @file rua.h + * @file rua.h * @brief RUA API declaration header file. * @author Jinwoo Nam (jwoo.nam@samsung.com) * @version 0.1 |