Browse Source

skip traffic_detail && session tables from migration

root 3 tháng trước cách đây
mục cha
commit
75cbfd9cfb
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      docs/databases/migrate2psql.pl

+ 6 - 0
docs/databases/migrate2psql.pl

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