|
|
@@ -579,7 +579,7 @@ for my $idx (0 .. $#tables_to_migrate) {
|
|
|
my $table = $tables_to_migrate[$idx];
|
|
|
my $table_num = $idx + 1;
|
|
|
|
|
|
- if ($table_name =~ /(traffic_detail|sessions)/) { next; }
|
|
|
+ if ($table =~ /(traffic_detail|sessions)/) { next; }
|
|
|
|
|
|
print "[$table_num/$total_tables] Processing table: $table\n";
|
|
|
|
|
|
@@ -604,7 +604,7 @@ for my $idx (0 .. $#tables_to_migrate) {
|
|
|
# --- Этап 2: Проверяем, что все таблицы и колонки PG-схемы есть в MySQL ---
|
|
|
for my $table (keys %pg_schema) {
|
|
|
|
|
|
- if ($table_name =~ /(traffic_detail|sessions)/) { next; }
|
|
|
+ if ($table =~ /(traffic_detail|sessions)/) { next; }
|
|
|
|
|
|
if (!exists $mysql_tables{$table}) {
|
|
|
print " ❗ ERROR: Table $table from PG schema not found in source MySQL database!\n";
|