aboutsummaryrefslogtreecommitdiff
path: root/odb/option-functions.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-04-08 11:13:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:44 +0200
commita4f25daf17392c9c4b90de60b9d777290706f667 (patch)
treee3b4903ac35eb2ec4c44cfc7ce630f5d964c7b3d /odb/option-functions.cxx
parent2fa6a4d00945866e62d980270d5807f3abca75ab (diff)
Generate add/drop foreign key migration statements
Also add the --fkeys-deferrable-mode option. General schemas generation rework.
Diffstat (limited to 'odb/option-functions.cxx')
-rw-r--r--odb/option-functions.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/option-functions.cxx b/odb/option-functions.cxx
index 016b729..61db175 100644
--- a/odb/option-functions.cxx
+++ b/odb/option-functions.cxx
@@ -53,6 +53,11 @@ process_options (options& o)
if (o.schema_name ().count (db) == 0)
o.schema_name ()[db] = "";
+ // Set default --fkeys-deferrable-mode value.
+ //
+ if (o.fkeys_deferrable_mode ().count (db) == 0)
+ o.fkeys_deferrable_mode ()[db] = deferrable::deferred;
+
// Set default --{export,extern}-symbol values.
//
if (o.export_symbol ().count (db) == 0)