diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-28 07:52:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-28 07:52:50 +0200 |
commit | 08022a07eead928949be5581f1202a197bf68551 (patch) | |
tree | 657fb45ee2b1510d157b8146a0bd02684a12e3c2 /odb/database.ixx | |
parent | 74f50a3bc6890c96532fe9e76e387171aec3a8c3 (diff) |
Support for added and deleted data member pragmas
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; |