Fix "Notice: Undefined index: foreign_keys_data"

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-06-27 15:46:57 +02:00
parent 12b62acdc7
commit 6529d81b71
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -1965,6 +1965,10 @@ class Relation
return $foreigners[$column];
}
if (! isset($foreigners['foreign_keys_data'])) {
return false;
}
$foreigner = [];
foreach ($foreigners['foreign_keys_data'] as $one_key) {
$column_index = array_search($column, $one_key['index_list']);