aboutsummaryrefslogtreecommitdiff
path: root/evolution/drop-foreign-key/model.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'evolution/drop-foreign-key/model.hxx')
-rw-r--r--evolution/drop-foreign-key/model.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/evolution/drop-foreign-key/model.hxx b/evolution/drop-foreign-key/model.hxx
index 4f41329..b58aa92 100644
--- a/evolution/drop-foreign-key/model.hxx
+++ b/evolution/drop-foreign-key/model.hxx
@@ -10,6 +10,8 @@
#include <odb/core.hxx>
+#include <common/config.hxx> // DATABASE_XXX
+
#pragma db model version(1, MODEL_VERSION)
#define MODEL_NAMESPACE_IMPL(V) v##V
@@ -23,6 +25,9 @@ namespace MODEL_NAMESPACE(MODEL_VERSION)
#pragma db id
unsigned long id_;
+ // SQLite doesn't support dropping of foreign keys.
+ //
+#ifndef DATABASE_SQLITE
#if MODEL_VERSION == 2
object* o1;
object* o2;
@@ -38,6 +43,7 @@ namespace MODEL_NAMESPACE(MODEL_VERSION)
object (unsigned long id = 0): id_ (id) {}
#endif
+#endif
};
}