diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-09 16:17:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:47 +0200 |
commit | b0c2c30dd0b83ea67fb2c8375ae2061dad0d1770 (patch) | |
tree | b1fbada48dab47c2477c6016a45cfac957670346 /evolution/drop-column/model.hxx | |
parent | 7d1e16930e37c4109f439f5ebe1e789b9619a57e (diff) |
Add support for embedded schema migration
Diffstat (limited to 'evolution/drop-column/model.hxx')
-rw-r--r-- | evolution/drop-column/model.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/evolution/drop-column/model.hxx b/evolution/drop-column/model.hxx index 0c54252..42a8f54 100644 --- a/evolution/drop-column/model.hxx +++ b/evolution/drop-column/model.hxx @@ -11,6 +11,8 @@ #include <odb/core.hxx> #include <odb/nullable.hxx> +#include <common/config.hxx> // DATABASE_XXX + #pragma db model version(1, MODEL_VERSION) #define MODEL_NAMESPACE_IMPL(V) v##V @@ -26,10 +28,14 @@ namespace MODEL_NAMESPACE(MODEL_VERSION) #pragma db id unsigned long id_; + // SQLite doesn't support dropping of columns. + // +#ifndef DATABASE_SQLITE #if MODEL_VERSION == 2 std::string str; unsigned long num; #endif +#endif }; } |