Files
peptide-search-ai/peptide-search-ai.php
peptiderepo a8a0ce2121 feat: auto-run schema upgrades on version change
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>
2026-04-14 12:02:49 +07:00

9.0 KiB
Executable File