diff options
Diffstat (limited to 'odb/semantics/relational/changelog.cxx')
-rw-r--r-- | odb/semantics/relational/changelog.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/semantics/relational/changelog.cxx b/odb/semantics/relational/changelog.cxx index 73dac77..800fb97 100644 --- a/odb/semantics/relational/changelog.cxx +++ b/odb/semantics/relational/changelog.cxx @@ -30,6 +30,7 @@ namespace semantics throw parsing (p, "unsupported changelog format version"); database_ = p.attribute ("database"); + schema_name_ = p.attribute ("schema-name", ""); // Because things are stored in the reverse order, first save the // changesets as XML chunks and then re-parse them in the reverse @@ -128,6 +129,8 @@ namespace semantics s.start_element (xmlns, "changelog"); s.namespace_decl (xmlns, ""); s.attribute ("database", database_); + if (!schema_name_.empty ()) + s.attribute ("schema-name", schema_name_); s.attribute ("version", 1); // Format version. // For better readability serialize things in reverse order so that |