diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-09 16:17:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-09 16:17:26 +0200 |
commit | 287a41287ed26bcf481f087680cad56ed5ef9865 (patch) | |
tree | a139f2da973f2e6576d2673e9e096a4e4ab12e6f /odb/schema-catalog-impl.hxx | |
parent | 4962329eecb716bc2b99810ec1ac4214606fc1e8 (diff) |
Add support for embedded schema migration
Diffstat (limited to 'odb/schema-catalog-impl.hxx')
-rw-r--r-- | odb/schema-catalog-impl.hxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/odb/schema-catalog-impl.hxx b/odb/schema-catalog-impl.hxx index 414dadd..f14f1df 100644 --- a/odb/schema-catalog-impl.hxx +++ b/odb/schema-catalog-impl.hxx @@ -9,7 +9,7 @@ #include <cstddef> -#include <odb/forward.hxx> +#include <odb/forward.hxx> // schema_version #include <odb/details/export.hxx> @@ -32,13 +32,22 @@ namespace odb // Catalog entry registration. // - struct LIBODB_EXPORT schema_catalog_entry + struct LIBODB_EXPORT schema_catalog_create_entry { - schema_catalog_entry ( - database_id id, + schema_catalog_create_entry ( + database_id, const char* name, bool (*create_function) (database&, unsigned short pass, bool drop)); }; + + struct LIBODB_EXPORT schema_catalog_migrate_entry + { + schema_catalog_migrate_entry ( + database_id, + const char* name, + schema_version, + bool (*migrate_function) (database&, unsigned short pass, bool pre)); + }; } #include <odb/post.hxx> |