From 52cfa74e094c32910fa1076375f1ae0c9795d45d Mon Sep 17 00:00:00 2001 From: ijl Date: Sun, 13 Oct 2013 17:13:28 -0400 Subject: #2183: Metadata.reflect() foreign keys include options when the dialect exposes it --- lib/sqlalchemy/sql/schema.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 92220b0d1..3f9ff0067 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -2396,7 +2396,9 @@ class ForeignKeyConstraint(Constraint): ondelete=self.ondelete, use_alter=self.use_alter, link_to_name=self.link_to_name, - match=self.match + match=self.match, + deferrable=self.deferrable, + initially=self.initially ) if table is not None: -- cgit v1.2.1