Skip to content

Commit

Permalink
Update OracleSchema.php
Browse files Browse the repository at this point in the history
Table object has references to column names uppercase.  So we have to call addConstraint method with $data's columns names uppercase too. Otherwise the constraint column name doesn't match with the table column name.
  • Loading branch information
ivasse committed May 12, 2016
1 parent c018429 commit 12159ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/Schema/OracleSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,10 @@ public function convertForeignKeyDescription(Table $table, $row)
$row = array_change_key_case($row);
$data = [
'type' => Table::CONSTRAINT_FOREIGN,
'columns' => strtolower($row['column_name']),
'columns' => strtoupper($row['column_name']),
'references' => [
$row['referenced_owner'] . '.' . $row['referenced_table_name'],
strtolower($row['referenced_column_name'])
strtoupper($row['referenced_column_name'])
],
'update' => Table::ACTION_SET_NULL,
'delete' => $this->_convertOnClause($row['delete_rule']),
Expand Down

0 comments on commit 12159ed

Please sign in to comment.