Skip to content
Permalink
Browse files

Rename a property to better reflect its purpose

  • Loading branch information...
HavokInspiration committed Jun 17, 2015
1 parent cd4ac1d commit 2766002a32f66887c522a39b9f05c6b74f5971a8
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Database/Schema/SqliteSchema.php
@@ -24,12 +24,12 @@ class SqliteSchema extends BaseSchema
{
/**
* Array containing the FK names
* Array containing the foreign keys constraints names
* Necessary for composite foreign keys to be handled
*
* @var array
*/
protected $_constraint = [];
protected $_constraintsIdMap = [];
/**
* Convert a column definition to the abstract types.
@@ -227,10 +227,10 @@ public function convertForeignKeyDescription(Table $table, $row)
'delete' => $this->_convertOnClause($delete),
];
if (isset($this->_constraint[$table->name()][$row['id']])) {
$name = $this->_constraint[$table->name()][$row['id']];
if (isset($this->_constraintsIdMap[$table->name()][$row['id']])) {
$name = $this->_constraintsIdMap[$table->name()][$row['id']];
} else {
$this->_constraint[$table->name()][$row['id']] = $name;
$this->_constraintsIdMap[$table->name()][$row['id']] = $name;
}
$table->addConstraint($name, $data);

0 comments on commit 2766002

Please sign in to comment.
You can’t perform that action at this time.