database compare optimizations, renamed from export

This commit is contained in:
OpenXE
2022-11-24 12:42:45 +01:00
parent e2869af239
commit e82685d280
2 changed files with 12 additions and 464 deletions
+12 -13
View File
@@ -346,19 +346,6 @@ if ($argc > 1) {
exit;
}
function info() {
echo("\nOpenXE database extractor\n");
echo("Copyright 2022 (c) OpenXE project\n\n");
echo("\n");
echo("Export database structures in a defined format for database comparison / upgrade\n");
echo("Options\n");
echo("\t-v: verbose output\n");
echo("\t-f: force override of existing files\n");
echo("\t-e: export database structure to files\n");
echo("\t-c: compare content of files with database structure\n");
echo("\n");
}
// Compare two definitions
// Report based on the first array
// Return Array
@@ -448,4 +435,16 @@ function compare_table_array(array $nominal, array $actual, bool $check_column_d
return($compare_differences);
}
function info() {
echo("OpenXE database compare\n");
echo("Copyright 2022 (c) OpenXE project\n");
echo("\n");
echo("Export database structures in a defined format for database comparison / upgrade\n");
echo("Options:\n");
echo("\t-v: verbose output\n");
echo("\t-f: force override of existing files\n");
echo("\t-e: export database structure to files\n");
echo("\t-c: compare content of files with database structure\n");
echo("\n");
}