Check pkgmgr database's crashed schema 62/250162/1
authorIlho Kim <ilho159.kim@samsung.com>
Mon, 21 Dec 2020 08:57:10 +0000 (17:57 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 21 Dec 2020 08:57:10 +0000 (17:57 +0900)
commit0860be10d1d5b329a72a2abce5d6843d0d33a560
treefb7f0d28c602406d84f40bbd4ccbcb6ddf16440c
parent69157674099fa60e1289f0d49bd4b31121294b01
Check pkgmgr database's crashed schema

If there is a column edited in the database,
the integrity check routine may fail to detect
This patch performs an additional check to detect the malformed database
using sqlite_master table's sql statement

Change-Id: I612e6562506f3e253727c96995d0a89fe4d02a8e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
parser/include/pkgmgr_parser_db_queries.h [moved from parser/src/pkgmgr_parser_db_queries.h with 86% similarity]
parser/src/pkgmgr_parser_db.c
tool/pkg-db-recovery.c