Adds psa_maybe_run_upgrades() that compares stored psa_db_version against PSA_VERSION on admin_init. When the code version is newer, re-runs PSA_Cost_Tracker::create_table() so dbDelta picks up additive schema changes (like the new token_source column) without requiring the admin to deactivate/reactivate the plugin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9.0 KiB
Executable File
9.0 KiB
Executable File