Add a missing db version set 62/269162/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 10 Jan 2022 23:18:58 +0000 (08:18 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 10 Jan 2022 23:18:58 +0000 (08:18 +0900)
The user_version is set to appsvc db.

Change-Id: Icb649d3d521e336d99a775a83a20b65d6c946e8f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
CMakeLists.txt
scripts/12_appsvc-add.post.in [moved from scripts/12_appsvc-add.post with 97% similarity]

index 4bc441d..dcfc064 100644 (file)
@@ -120,6 +120,7 @@ INSTALL(TARGETS ${TARGET_AUL} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLi
 CONFIGURE_FILE(aul.pc.in aul.pc @ONLY)
 CONFIGURE_FILE(feature/preexec_list.txt.in feature/preexec_list.txt @ONLY)
 CONFIGURE_FILE(data/appsvc_db.sql.in data/appsvc_db.sql @ONLY)
+CONFIGURE_FILE(scripts/12_appsvc-add.post.in scripts/12_appsvc-add.post @ONLY)
 CONFIGURE_FILE(scripts/501.appsvc_db_upgrade.sh.in scripts/501.appsvc_db_upgrade.sh @ONLY)
 CONFIGURE_FILE(scripts/upgrade/1_appsvc_db_upgrade.sh.in scripts/upgrade/1_appsvc_db_upgrade.sh @ONLY)
 
similarity index 97%
rename from scripts/12_appsvc-add.post
rename to scripts/12_appsvc-add.post.in
index 2eff973..5f342f5 100755 (executable)
@@ -16,6 +16,7 @@ chown $TZ_USER_NAME:system_share /opt/dbspace/user/$2
 # Create DB
 sqlite3 /opt/dbspace/user/$2/.appsvc.db << EOF
 PRAGMA journal_mode = PERSIST;
+PRAGMA user_version = @APPSVC_DB_VERSION@;
 
 CREATE TABLE IF NOT EXISTS appsvc (
        operation TEXT,