From 86ad59a88bcd10fcc4da897d9644e7ee6a69e3e4 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 4 Nov 2013 11:28:16 -0800 Subject: [PATCH] doc --- DBSchema/ForeignKey.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DBSchema/ForeignKey.pm b/DBSchema/ForeignKey.pm index 282f8a3..c47286c 100644 --- a/DBSchema/ForeignKey.pm +++ b/DBSchema/ForeignKey.pm @@ -20,7 +20,9 @@ DBIx::DBSchema::ForeignKey - Foreign key objects ); $foreign_key = new DBIx::DBSchema::ForeignKey ( - { 'columns' => [ 'column_name', 'column2' ], + { + 'constraint' => 'constraint_name', + 'columns' => [ 'column_name', 'column2' ], 'table' => 'foreign_table', 'references' => [ 'foreign_column', 'foreign_column2' ], 'match' => 'MATCH FULL', # or MATCH SIMPLE -- 2.11.0