END_OF_CHECKSCHEMA_HELP;
$longoptions = array('diff', 'all', 'create', 'update', 'raw', 'checksum');
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
function indentOptions($indent)
{
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]) {
$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;
}
}
} else {
show_help($helptext);
-}
\ No newline at end of file
+}