From ee7fa7747bae99288496ffa55c8e78d7f11de959 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Wed, 18 Oct 2023 19:47:21 +0300 Subject: [PATCH] MT#58530 Fix regex to ignore tables The exception '.+/accounting/cdr_[0-9]{6}/.+' ignores all elements of a table (columns, indexes, etc) but not the table itself. It cases error: ======================= Element: tables/accounting/cdr_202205 is missing in json file ======================= So fix the regex. Change-Id: Ie5c23a89e85281b0d2a436cea3b888cad5974c11 (cherry picked from commit a8e98fc1fdbf77da92f2fd110e464e2609f415c4) --- helper/compare_dbs.pl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/helper/compare_dbs.pl b/helper/compare_dbs.pl index 8976b84..5a83109 100755 --- a/helper/compare_dbs.pl +++ b/helper/compare_dbs.pl @@ -36,15 +36,15 @@ my @diff_exceptions = qw( tables/accounting/cdr_period_costs/create_options tables/accounting/cdr/create_options - .+/accounting/cdr_cash_balance_data_[0-9]{6}/.+ - .+/accounting/cdr_time_balance_data_[0-9]{6}/.+ - .+/accounting/cdr_relation_data_[0-9]{6}/.+ - .+/accounting/cdr_tag_data_[0-9]{6}/.+ - .+/accounting/cdr_mos_data_[0-9]{6}/.+ - .+/accounting/cdr_export_status_data_[0-9]{6}/.+ - .+/accounting/cdr_group_[0-9]{6}/.+ - .+/accounting/cdr_period_costs_[0-9]{6}/.+ - .+/accounting/cdr_[0-9]{6}/.+ + .+/accounting/cdr_cash_balance_data_[0-9]{6}.* + .+/accounting/cdr_time_balance_data_[0-9]{6}.* + .+/accounting/cdr_relation_data_[0-9]{6}.* + .+/accounting/cdr_tag_data_[0-9]{6}.* + .+/accounting/cdr_mos_data_[0-9]{6}.* + .+/accounting/cdr_export_status_data_[0-9]{6}.* + .+/accounting/cdr_group_[0-9]{6}.* + .+/accounting/cdr_period_costs_[0-9]{6}.* + .+/accounting/cdr_[0-9]{6}.* ); my $credentials_file = '/etc/mysql/sipwise_extra.cnf';