From 08022a07eead928949be5581f1202a197bf68551 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 28 Aug 2013 07:52:50 +0200 Subject: Support for added and deleted data member pragmas --- odb/database.ixx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'odb/database.ixx') 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; -- cgit v1.1