[2.0] DDC-109 - Fixed another warning in SchemaTool with inverse join columns and unique constraints.
This commit is contained in:
parent
30e2299321
commit
1dae2eaf41
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ class SchemaTool
|
||||||
$constraint1['local'][] = $column['name'];
|
$constraint1['local'][] = $column['name'];
|
||||||
$constraint1['foreign'][] = $joinColumn['referencedColumnName'];
|
$constraint1['foreign'][] = $joinColumn['referencedColumnName'];
|
||||||
|
|
||||||
if($joinColumn['unique'] == true) {
|
if(isset($joinColumn['unique']) && $joinColumn['unique'] == true) {
|
||||||
$joinTableOptions['uniqueConstraints'][] = array($joinColumn['name']);
|
$joinTableOptions['uniqueConstraints'][] = array($joinColumn['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue