Commit 1dae2eaf authored by beberlei's avatar beberlei

[2.0] DDC-109 - Fixed another warning in SchemaTool with inverse join columns...

[2.0] DDC-109 - Fixed another warning in SchemaTool with inverse join columns and unique constraints.
parent 30e22993
......@@ -368,7 +368,7 @@ class SchemaTool
$constraint1['local'][] = $column['name'];
$constraint1['foreign'][] = $joinColumn['referencedColumnName'];
if($joinColumn['unique'] == true) {
if(isset($joinColumn['unique']) && $joinColumn['unique'] == true) {
$joinTableOptions['uniqueConstraints'][] = array($joinColumn['name']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment