Add db schema to version 30004 99/199999/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 18 Feb 2019 05:48:12 +0000 (14:48 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 11 Mar 2019 01:53:39 +0000 (01:53 +0000)
Change-Id: I9ffe4bf630341f21c1fb319450096a4515789ea1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
data/updates/upgrade_to_30004.sh.in

index 23509a3..ec3ea57 100644 (file)
@@ -18,6 +18,12 @@ function migrate_parser_db() {
                "  FOREIGN KEY(package)\n" \
                "  REFERENCES package_info(package) ON DELETE CASCADE);" | sqlite3 $dbpath
 
+       echo -e "CREATE TABLE IF NOT EXISTS package_plugin_info (\n" \
+               "  pkgid TEXT NOT NULL,\n" \
+               "  appid TEXT,\n" \
+               "  plugin_type TEXT NOT NULL,\n",
+               "  plugin_name TEXT NOT NULL)" | sqlite3 $dbpath
+
        echo "PRAGMA user_version=30004;" | sqlite3 $dbpath
 }