Skip to content

Commit

Permalink
Update rewritten fixture fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 29, 2013
1 parent d9ae64c commit 17d36aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Console/Command/UpgradeShell.php
Expand Up @@ -374,20 +374,20 @@ protected function _processFixture($content) {
if (isset($data['indexes'])) {
foreach ($data['indexes'] as $index => $indexProps) {
if (isset($indexProps['column'])) {
$indexProps['columns'] = $indexProp['column'];
unset($indexProp['column']);
$indexProps['columns'] = $indexProps['column'];
unset($indexProps['column']);
}
// Move unique indexes over
if (!empty($indexProps['unique'])) {
unset($indexProps['unique']);
$constraints[$index] = ['type' => 'unique'] + $indexProps;
continue;
}
$out['indexes'][$index] = $indexProps;
$out['_indexes'][$index] = $indexProps;
}
}
if (count($constraints)) {
$out['constraints'] = $constraints;
$out['_constraints'] = $constraints;
}
return $matches[1] . "\n\t\t" . implode(",\n\t\t", $export($out)) . "\n\t" . $matches[3];
};
Expand Down

0 comments on commit 17d36aa

Please sign in to comment.