projects
/
DBIx-DBSchema.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad582c
)
doc
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 4 Nov 2013 19:28:16 +0000
(11:28 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 4 Nov 2013 19:28:16 +0000
(11:28 -0800)
DBSchema/ForeignKey.pm
patch
|
blob
|
history
diff --git
a/DBSchema/ForeignKey.pm
b/DBSchema/ForeignKey.pm
index
282f8a3
..
c47286c
100644
(file)
--- 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