PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Migrations/MigrationProgress.php +6 -6 3.0.6 → 3.0.16 View file →
@@ -424,9 +424,9 @@
424 424 if ($completedAt !== null) {
425 425 $progress[$dataType]['completed_at'] = $completedAt;
426 426 }
427 427
428 - update_option('yatra_migration_progress', $progress);
428 + update_option('yatra_migration_progress', $progress, false);
429 429 }
430 430
431 431 /**
432 432 * Migrate all data types.
@@ -574,9 +574,9 @@
574 574 'completed_at' => null,
575 575 ];
576 576 }
577 577
578 - update_option('yatra_migration_progress', $progress);
578 + update_option('yatra_migration_progress', $progress, false);
579 579 update_option('yatra_migration_started_at', current_time('mysql'));
580 580 delete_option('yatra_migration_rewrite_flushed_for_started_at');
581 581 }
582 582
@@ -670,9 +670,9 @@
670 670 }
671 671 }
672 672
673 673 if ($updated) {
674 - update_option('yatra_migration_progress', $progress);
674 + update_option('yatra_migration_progress', $progress, false);
675 675 }
676 676
677 677 Logger::info('Migration cancelled', ['source' => 'migration']);
678 678
@@ -745,9 +745,9 @@
745 745 }
746 746 }
747 747
748 748 if ($progressChanged) {
749 - update_option('yatra_migration_progress', $progress);
749 + update_option('yatra_migration_progress', $progress, false);
750 750 }
751 751
752 752 if ($allComplete && !empty($progress)) {
753 753 $this->finalizeProgressIfAllComplete();
@@ -985,9 +985,9 @@
985 985 'duration' => $duration,
986 986 'timestamp' => current_time('mysql'),
987 987 ];
988 988
989 - update_option('yatra_migration_log', $log);
989 + update_option('yatra_migration_log', $log, false); // autoload=false: migration-time only
990 990 }
991 991
992 992 private function getMigrationLog(): array
993 993 {
@@ -1023,9 +1023,9 @@
1023 1023 }
1024 1024
1025 1025 [$progress, $zeroChanged] = $this->applyZeroCountAutoComplete($progress);
1026 1026 if ($zeroChanged) {
1027 - update_option('yatra_migration_progress', $progress);
1027 + update_option('yatra_migration_progress', $progress, false);
1028 1028 }
1029 1029
1030 1030 foreach ($progress as $status) {
1031 1031 if (($status['status'] ?? '') !== 'completed') {