[PR #2173] Fix: Actualbudget - salvage the .migrate file when upgrading #3471

Closed
opened 2025-11-20 06:05:00 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/community-scripts/ProxmoxVE/pull/2173

State: closed
Merged: Yes


✍️ Description

Recent Actual Budget update made it mandatory to persist the .migrate file before upgrading, or else the SQLite migrations fail:

Up until recently the migrations that were running were always backwards compatible, so re-running them again and again didn't cause issues. But recently we introduced a migration that can only be ran once. Which is fine - migrations are expected to be ran once.

But because the .migrate file is not persisted in some machines... things blow up.

https://github.com/actualbudget/actual-server/issues/521#issuecomment-2536985283



Prerequisites

The following steps must be completed for the pull request to be considered:

  • Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
  • Testing performed (I have thoroughly tested my changes and verified expected functionality.)

🛠️ Type of Change

Please check the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • [] New feature (non-breaking change that adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
  • [] New script (a fully functional and thoroughly tested script or set of scripts)

📋 Additional Information (optional)

Provide any extra context or screenshots about the feature or fix here.

**Original Pull Request:** https://github.com/community-scripts/ProxmoxVE/pull/2173 **State:** closed **Merged:** Yes --- ## ✍️ Description Recent Actual Budget update made it mandatory to persist the `.migrate` file before upgrading, or else the SQLite migrations fail: > Up until recently the migrations that were running were always backwards compatible, so re-running them again and again didn't cause issues. But recently we introduced a migration that can only be ran once. Which is fine - migrations are expected to be ran once. > > But because the .migrate file is not persisted in some machines... things blow up. https://github.com/actualbudget/actual-server/issues/521#issuecomment-2536985283 - - - - Related Issue: #2168 - - - ## ✅ Prerequisites The following steps must be completed for the pull request to be considered: - [x] Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.) - [x] Testing performed (I have thoroughly tested my changes and verified expected functionality.) ## 🛠️ Type of Change Please check the relevant options: - [x] Bug fix (non-breaking change that resolves an issue) - [] New feature (non-breaking change that adds functionality) - [] Breaking change (fix or feature that would cause existing functionality to change unexpectedly) - [] New script (a fully functional and thoroughly tested script or set of scripts) --- ## 📋 Additional Information (optional) Provide any extra context or screenshots about the feature or fix here.
saavagebueno added the pull-request label 2025-11-20 06:05:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#3471