db: Add update script 73/62573/13
authorLukasz Kostyra <l.kostyra@samsung.com>
Wed, 16 Mar 2016 15:36:47 +0000 (16:36 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 18 Apr 2016 08:00:42 +0000 (10:00 +0200)
commit20a1fc20ecbcd86066c75687dec3247b6e06bdf3
tree1ef82eb84b919864eca83ee8086e48246d334e37
parent04a23aabac88fd9351d8971f7e14bb4594906953
db: Add update script

The script performs update of current security-manager database
by using intermediate schema updaters (located in db/updates) and
by applying views from main db schema (db/db.sql).

Verification:
    Build with higher package version, upgrade package with rpm -Uh.
    The script will activate and update DB version on target to 1.

Change-Id: I4d185f7e47d4ae9df53349627b8f97be22ef2642
Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
db/240.security-manager.db-update.sh [new file with mode: 0755]
db/CMakeLists.txt
db/db.sql
db/update.sh [new file with mode: 0755]
db/updates/update-db-to-v1.sql [new file with mode: 0644]
packaging/security-manager.spec