Skip to content

Commit

Permalink
Migrate tableParameters when converting fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 29, 2013
1 parent 17d36aa commit f51d164
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Cake/Console/Command/UpgradeShell.php
Expand Up @@ -365,7 +365,7 @@ protected function _processFixture($content) {
if (isset($properties['key'])) {
unset($properties['key']);
}
if ($field !== 'indexes') {
if ($field !== 'indexes' && $field !== 'tableParameters') {
$out[$field] = $properties;
}
}
Expand All @@ -389,6 +389,11 @@ protected function _processFixture($content) {
if (count($constraints)) {
$out['_constraints'] = $constraints;
}

// Process table parameters
if (isset($data['tableParameters'])) {
$out['_options'] = $data['tableParameters'];
}
return $matches[1] . "\n\t\t" . implode(",\n\t\t", $export($out)) . "\n\t" . $matches[3];
};
$content = preg_replace_callback(
Expand Down

0 comments on commit f51d164

Please sign in to comment.