Skip to content
Permalink
Browse files

Update rewritten fixture fields.

  • Loading branch information...
markstory committed May 29, 2013
1 parent d9ae64c commit 17d36aad6c40aa750479052ab4d2a51f9fc70dcf
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/Console/Command/UpgradeShell.php
@@ -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];
};

0 comments on commit 17d36aa

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