From c94bd25536d2622810cb52c3686574427d50720e Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Mon, 12 Aug 2019 15:06:29 +0900 Subject: [PATCH] Fix db migration script Change package_dependency_info's primary key Change-Id: I136c223cedd7f5681668ae32f1b01044fe316097 Signed-off-by: Ilho Kim --- data/updates/upgrade_to_30004.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/updates/upgrade_to_30004.sh.in b/data/updates/upgrade_to_30004.sh.in index d1214e2..67f66b4 100644 --- a/data/updates/upgrade_to_30004.sh.in +++ b/data/updates/upgrade_to_30004.sh.in @@ -14,7 +14,7 @@ function migrate_parser_db() { " depends_on TEXT NOT NULL,\n" \ " type TEXT NOT NULL,\n" \ " required_version TEXT,\n" \ - " PRIMARY KEY(package, depends_on, type, required_version)\n" \ + " PRIMARY KEY(package, depends_on),\n" \ " FOREIGN KEY(package)\n" \ " REFERENCES package_info(package) ON DELETE CASCADE);" | sqlite3 $dbpath -- 2.7.4