Skip to content

Commit

Permalink
Fix incorrect constant + method name.
Browse files Browse the repository at this point in the history
I missed this when I changed things around.
  • Loading branch information
markstory committed May 26, 2013
1 parent 5f905f0 commit 31bdbbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Database/Schema/MysqlSchema.php
Expand Up @@ -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']]
]);
}
Expand Down

0 comments on commit 31bdbbb

Please sign in to comment.