archethic-foundation / archethic-node

Official Archethic Blockchain node, written in Elixir
GNU Affero General Public License v3.0
75 stars 22 forks source link

Use Elixir Version module on migrate version compare #1568

Closed Neylix closed 1 month ago

Neylix commented 1 month ago

Description

Fixes an issue where a version is for example "1.5.10" and a migration task is created for version "1.5.9". The Migrate module compare version as string and 1.5.9 > 1.5.10 while it should not be. Used the Elixir Version module to fix it

Type of change

On current version (1.5.10) run a node, stop it and restart it, without the fix it will try to run the migration for 1.5.9 that fail. It does not run the migration after the fix

Checklist: