[--locales: --mpqDataDir: --force -f]', -1, false); CLI::write(); CLI::write(' Truncates and recreates AoWoW tables and static data files that depend on the given TC world table. Use this command after you updated your world database.', -1, false); CLI::write(); CLI::write(' e.g.: "php aowow --sync=creature_queststarter" causes the table aowow_quests_startend to be recreated.', -1, false); CLI::write(' Also quest-related profiler files will be recreated as they depend on aowow_quests_startend and thus indirectly on creature_queststarter.', -1, false); CLI::write(); return; } $_s = sql($s); if ($s) { $_ = array_diff($s, $_s); DB::Aowow()->query('UPDATE ?_dbversion SET `sql` = ?', $_ ? implode(' ', $_) : ''); } $_b = build($b); if ($b) { $_ = array_diff($b, $_b); DB::Aowow()->query('UPDATE ?_dbversion SET `build` = ?', $_ ? implode(' ', $_) : ''); } if (!$s && !$_s && !$b && !$_b) CLI::write('no valid table names supplied', CLI::LOG_ERROR); } ?>