public function convertForeignKeyDescription(Table $table, $row)
{
$name = $row['from'] . '_fk';
$update = isset($row['on_update']) ? $row['on_update'] : '';
$delete = isset($row['on_delete']) ? $row['on_delete'] : '';
$data = ['type' => Table::CONSTRAINT_FOREIGN, 'columns' => [$row['from']], 'references' => [$row['table'], $row['to']], 'update' => $this->_convertOnClause($update), 'delete' => $this->_convertOnClause($delete)];
if (isset($this->_constraintsIdMap[$table->name()][$row['id']])) {
$name = $this->_constraintsIdMap[$table->name()][$row['id']];
} else {
$this->_constraintsIdMap[$table->name()][$row['id']] = $name;
}
$table->addConstraint($name, $data);
}