aboutsummaryrefslogtreecommitdiff
path: root/evolution/add-foreign-key/model.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-04-09 16:17:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:47 +0200
commitb0c2c30dd0b83ea67fb2c8375ae2061dad0d1770 (patch)
treeb1fbada48dab47c2477c6016a45cfac957670346 /evolution/add-foreign-key/model.hxx
parent7d1e16930e37c4109f439f5ebe1e789b9619a57e (diff)
Add support for embedded schema migration
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) {}