Add tables to ignore list that do not follow typical table conventions

This commit is contained in:
Akkadius committed 2020-04-04 02:13:47 -05:00
1 parent 3aaa5020b1
commit 9e27ffacff
6 files changed
+38 -1049

No files matched your search

@@ -114,12 +114,25 @@ foreach my $table_to_generate (@tables) {
"login_tables",
);
# These tables don't have a typical schema
my @table_ignore_list = (
"character_enabledtasks",
"keyring",
"profanity_list",
"zone_flags",
);
foreach my $category (@categories) {
if ($table_to_generate ~~ $database_schema->{$category}) {
$table_found_in_schema = 1;
}
}
if ($table_to_generate ~~ @table_ignore_list) {
print "Table [$table_to_generate] is on ignore list... skipping...\n";
$table_found_in_schema = 0;
}
if ($table_found_in_schema == 0) {
print "Table [$table_to_generate] not found in schema, skipping\n";
next;