Skip to content
Permalink
Browse files

Fix incorrect constant + method name.

I missed this when I changed things around.
  • Loading branch information...
markstory committed May 26, 2013
1 parent 5f905f0 commit 31bdbbbcb3bb4b56b3a8c1786f09d3a78b273cec
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Database/Schema/MysqlSchema.php
@@ -142,8 +142,8 @@ public function convertFieldDescription(Table $table, $row, $fieldParams = []) {
}
$table->addColumn($row['Field'], $field);
if (!empty($row['Key']) && $row['Key'] === 'PRI') {
$table->addIndex('primary', [
'type' => Table::INDEX_PRIMARY,
$table->addConstraint('primary', [
'type' => Table::CONSTRAINT_PRIMARY,
'columns' => [$row['Field']]
]);
}

0 comments on commit 31bdbbb

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