END_OF_CHECKSCHEMA_HELP;
-$longoptions = array('diff');
+$longoptions = array('diff', 'all');
require_once INSTALLDIR.'/scripts/commandline.inc';
function indentOptions($indent)
return $schema[$tableName];
}
+function getCoreTables()
+{
+ $schema = array();
+ include INSTALLDIR . '/db/core.php';
+ return array_keys($schema);
+}
+
function dumpTable($tableName, $live)
{
if ($live) {
unlink($fnameB);
}
+if (have_option('all')) {
+ $args = getCoreTables();
+}
+
if (count($args)) {
foreach ($args as $tableName) {
if (have_option('diff')) {