Fix bug (TFDF-4925) 33/213933/1 accepted/tizen/unified/20190917.041350 submit/tizen/20190917.004518
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 17 Sep 2019 00:25:34 +0000 (09:25 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 17 Sep 2019 00:25:34 +0000 (09:25 +0900)
Call the upgrade function twice.

Change-Id: Idad1ea30340cd89174b628c9977b4e3a1b597aed
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-svc-db-utils.c

index 0cf32a5..bebfcdb 100755 (executable)
@@ -1275,8 +1275,6 @@ static int __media_svc_db_upgrade(sqlite3 *db_handle, int cur_version, uid_t uid
                goto ERROR;
        }
 
-       ret = __update_db_from_V6_to_V8(uid);
-
        /* Upgrade issue tizen 4.0 to 5.5 */
        if (cur_version == USER_V6) {
                ret = __update_db_from_V6_to_V8(uid);