Commit a922a86
docs(plugin-spec): the migration example no longer teaches the retired onUpgrade hook (#4300)
The page carries a warn Callout stating the onInstall/onEnable/onDisable/
onUninstall/onUpgrade family never existed and was retired (#4212) — and then,
600 lines down, its CHANGELOG example told the reader "the `onUpgrade`
lifecycle hook runs automatically when the package is upgraded to v2.0.0 and
renames the field on existing records." A reader who copies the example writes
a hook that never runs, which is the exact failure #4212 set out to end.
Replaced with the mechanism the same page already documents 320 lines above:
upgrade applies metadata migrations (ADR-0087), and no plugin code runs at
install/uninstall/upgrade.
Claude-Session: https://claude.ai/code/session_01HrRNgrWaRtggzmrHpbomyh
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2e836de commit a922a86
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
862 | | - | |
863 | | - | |
| 862 | + | |
| 863 | + | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| |||
0 commit comments