Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database migration checks minimum node version if next migration is squashed #2357

Open
6 tasks
jpraynaud opened this issue Mar 7, 2025 · 0 comments
Open
6 tasks
Assignees
Labels
feature 🚀 New implemented feature

Comments

@jpraynaud
Copy link
Member

Why

Implement a minimum node database version verification when running a database migration (useful with squash migration).
If the current database version is strictly below the squashed version, it means that the previous migrations done incrementally must be applied (and they are available only in the previous versions of the node) as the squashed version can not be applied as is. A minimum version of the node to play the update sequentially should be returned to the user in that case.

What

Implement a minimum version of the node needed when there is a gap between the last version of the database and the next version to be played (which is squashed).

How

  • Label squashed versions in the database migration tool
  • Detect a conflict if there is a gap between the versions (current and next to be applied which is squashed)
  • Display an error message with a minimum node version compatible to run the migrations sequentially
  • Adapt the migrations for:
    • aggregator (2 migrations)
    • signer (2 migrations)
@jpraynaud jpraynaud added the feature 🚀 New implemented feature label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New implemented feature
Projects
None yet
Development

No branches or pull requests

2 participants