mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-02-09 05:15:47 +08:00
Old 3.1.x config files used different field names (sleep_time/times) that were silently dropped during loading, causing user settings to be lost on upgrade. Also fixes version migration dispatch that was incorrectly calling 3.0→3.1 migration for all upgrades. - Migrate old config fields: sleep_time→rss_time, times→rename_time - Remove deprecated rss_parser fields (type, custom_url, token, enable_tmdb) - Fix ENV_TO_ATTR mapping to use correct model field names - Sync DEFAULT_SETTINGS with current Config model - Add version-aware migration dispatch (from_31_to_32) - Add comprehensive migration tests (config + database) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>