=' ) ) { return; } // Execute upgrade routines in ascending version order. if ( version_compare( $installed, '1.0', '<' ) ) { self::upgrade_to_1_0(); } // Future version upgrade blocks go here, following the same pattern above. update_site_option( Robotstxt_Mlp2_Mlp5_Logger::DB_VERSION_KEY, $current ); } /** * Upgrade DB schema to version 1.0. * * Creates the migration log table for the first time. dbDelta() is * idempotent and handles both initial creation and incremental ALTER safely. */ private static function upgrade_to_1_0(): void { Robotstxt_Mlp2_Mlp5_Logger::create_table(); } }