diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-27 08:20:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-27 08:20:23 +0200 |
commit | 7c3e06b937e57bf57216b5c63b538d27da005227 (patch) | |
tree | 7215da225e37ddb9c997efb2a5de25b84b288b46 /odb/database.hxx | |
parent | 91830e3bd38a05c73d03a5dfb88997799d44274b (diff) |
Add support for getting version and migration flag in one structure
Diffstat (limited to 'odb/database.hxx')
-rw-r--r-- | odb/database.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/odb/database.hxx b/odb/database.hxx index 6c70da7..a4ef058 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -335,6 +335,7 @@ namespace odb // public: typedef odb::schema_version schema_version_type; + typedef odb::schema_version_migration schema_version_migration_type; schema_version_type schema_version (const std::string& schema_name = "") const; @@ -342,6 +343,9 @@ namespace odb bool schema_migration (const std::string& schema_name = "") const; + const schema_version_migration_type& + schema_version_migration (const std::string& schema_name = "") const; + // Set schema version and migration state manually. // void @@ -362,10 +366,8 @@ namespace odb const std::string& schema_name); protected: - struct schema_version_info + struct schema_version_info: schema_version_migration_type { - schema_version_type version; - bool migration; std::string version_table; }; |