fix notices in dumpschema

This commit is contained in:
Brion Vibber 2010-10-29 15:11:41 -07:00
parent ac2447c395
commit 9ced8af8dc

View File

@ -177,7 +177,7 @@ function dumpDiff($tableName, $filter)
if ($section == 'fields') {
// this shouldn't be needed maybe... wait what?
}
$diff = $schema->diffArrays($old, $def, $section, $compare);
$diff = $schema->diffArrays($old, $def, $section);
$chunks = array('del', 'mod', 'add');
foreach ($chunks as $chunk) {
if ($diff[$chunk]) {
@ -205,6 +205,10 @@ function tweakPrimaryKey($def)
$def['primary keys'] = array('primary key' => $def['primary key']);
unset($def['primary key']);
}
if (isset($def['description'])) {
$def['descriptions'] = array('description' => $def['description']);
unset($def['description']);
}
return $def;
}