aboutsummaryrefslogtreecommitdiff
path: root/evolution/add-foreign-key/model.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'evolution/add-foreign-key/model.hxx')
-rw-r--r--evolution/add-foreign-key/model.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/evolution/add-foreign-key/model.hxx b/evolution/add-foreign-key/model.hxx
index e73e47a..6b116e9 100644
--- a/evolution/add-foreign-key/model.hxx
+++ b/evolution/add-foreign-key/model.hxx
@@ -48,7 +48,11 @@ namespace MODEL_NAMESPACE(MODEL_VERSION)
#else
object1* o1;
+ // There is no support for changing a column to NOT NULL in SQLite.
+ //
+#ifndef ODB_DATABASE_SQLITE
#pragma db not_null
+#endif
object2* o2;
object (unsigned long id = 0): id_ (id), o1 (0), o2 (0) {}