Change db schema comparison logic 37/272837/7
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 25 Mar 2022 08:30:04 +0000 (17:30 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 7 Apr 2022 01:02:19 +0000 (01:02 +0000)
commitc14b15d0a475ba9609d1a74eee9bb6e2676848d9
treef20a518824eac798717e1dd8a8e390aa98984a2e
parent44d1ca72fc7a5edc9380ab2e29ea31942ed64b53
Change db schema comparison logic

DB schema couldn't be separated by newline when db has upgraded
using "alter table" sql statement.
To compare it with db schema separated by newline, parse retrieved
schema with "," and trim empty lines to separate schema with one
colum definition.

Change-Id: I14c0f58c67f668962aac9a574ff2161132e69702
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
tool/pkg-db-recovery.c