aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-23 12:55:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-23 12:55:09 +0300
commit285c6f8787b99350c47954d0a53c2eb0fbd40c65 (patch)
tree7973e98315661a25e414f0a4c4495941e8e3e84f
parentbb906339180ebe3990a444fc30a4a78f3adcaeab (diff)
Fix database data migration to schema version 12
-rw-r--r--bpkg/database.cxx21
1 files changed, 20 insertions, 1 deletions
diff --git a/bpkg/database.cxx b/bpkg/database.cxx
index 15c79ae..0bbcc59 100644
--- a/bpkg/database.cxx
+++ b/bpkg/database.cxx
@@ -150,7 +150,26 @@ namespace bpkg
" ON DELETE CASCADE)");
db.execute ("INSERT INTO \"main\".\"selected_package_prerequisites\" "
- "SELECT * "
+ "SELECT "
+ "\"package\", "
+ "\"configuration\", "
+ "\"prerequisite\", "
+ "\"min_version_epoch\", "
+ "\"min_version_canonical_upstream\", "
+ "\"min_version_canonical_release\", "
+ "\"min_version_revision\", "
+ "\"min_version_iteration\", "
+ "\"min_version_upstream\", "
+ "\"min_version_release\", "
+ "\"max_version_epoch\", "
+ "\"max_version_canonical_upstream\", "
+ "\"max_version_canonical_release\", "
+ "\"max_version_revision\", "
+ "\"max_version_iteration\", "
+ "\"max_version_upstream\", "
+ "\"max_version_release\", "
+ "\"min_open\", "
+ "\"max_open\" "
"FROM \"main\".\"selected_package_prerequisites_old\"");
db.execute ("DROP TABLE \"main\".\"selected_package_prerequisites_old\"");