root преди 3 месеца
родител
ревизия
2fb531275c
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      docs/databases/migrate2psql.pl

+ 2 - 2
docs/databases/migrate2psql.pl

@@ -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";