From f85d634ac895a6ad937d8bc0861cc483d07da1cb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Apr 2013 11:43:10 +0200 Subject: Add database name to changelog --- odb/relational/changelog.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'odb/relational/changelog.cxx') diff --git a/odb/relational/changelog.cxx b/odb/relational/changelog.cxx index af6371a..bae2a2c 100644 --- a/odb/relational/changelog.cxx +++ b/odb/relational/changelog.cxx @@ -655,9 +655,10 @@ namespace relational changelog* old, std::string const& in_name, std::string const& out_name, - bool force_init) + options const& ops) { - cutl::shared_ptr cl (new (shared) changelog); + cutl::shared_ptr cl ( + new (shared) changelog (ops.database ()[0].string ())); graph& g (*cl); if (old == 0) @@ -673,7 +674,7 @@ namespace relational throw operation_failed (); } - if (!force_init) + if (!ops.init_changelog ()) cerr << out_name << ": info: initializing changelog with base " << "version " << mv.base << endl; -- cgit v1.1