diff options
Diffstat (limited to 'odb/database.ixx')
-rw-r--r-- | odb/database.ixx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/odb/database.ixx b/odb/database.ixx index 817aebe..2fa57b3 100644 --- a/odb/database.ixx +++ b/odb/database.ixx @@ -43,7 +43,9 @@ namespace odb } inline void database:: - schema_version (schema_version_type v, bool m, const std::string& name) + schema_version_migration (schema_version_type v, + bool m, + const std::string& name) { schema_version_info& svi (schema_version_map_[name]); svi.version = v; @@ -51,6 +53,15 @@ namespace odb } inline void database:: + schema_version_migration (const schema_version_migration_type& svm, + const std::string& name) + { + schema_version_info& svi (schema_version_map_[name]); + svi.version = svm.version; + svi.migration = svm.migration; + } + + inline void database:: schema_version_table (const std::string& tname) { schema_version_table_ = tname; |