From a4f25daf17392c9c4b90de60b9d777290706f667 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Apr 2013 11:13:51 +0200 Subject: Generate add/drop foreign key migration statements Also add the --fkeys-deferrable-mode option. General schemas generation rework. --- odb/option-functions.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb/option-functions.cxx') 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) -- cgit v1.1