aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/database.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bpkg/database.cxx b/bpkg/database.cxx
index fdfee32..6724582 100644
--- a/bpkg/database.cxx
+++ b/bpkg/database.cxx
@@ -312,6 +312,7 @@ namespace bpkg
database (database&& db)
: sqlite::database (move (db)),
uuid (db.uuid),
+ name (move (db.name)),
type (move (db.type)),
config (move (db.config)),
config_orig (move (db.config_orig)),
@@ -394,6 +395,9 @@ namespace bpkg
void database::
cache_config (const uuid_type& u, optional<std::string> n, std::string t)
{
+ // NOTE: remember to update database(database&&) if changing anything
+ // here.
+ //
uuid = u;
name = move (n);
type = move (t);