aboutsummaryrefslogtreecommitdiff
path: root/odb/schema-catalog-impl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/schema-catalog-impl.hxx')
-rw-r--r--odb/schema-catalog-impl.hxx17
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>