lecaillon / Evolve

Database migration tool for .NET and .NET Core projects. Inspired by Flyway.
https://evolve-db.netlify.com
MIT License
846 stars 112 forks source link

Allow versions longer than long.MaxValue #297

Open pophils opened 1 year ago

pophils commented 1 year ago

In a distributed environment where versions are generated using timestamp up to milliseconds level as shown below

unix_based_version_number=$(date '+%Y%m%d%H%M%S%s')

running migrate fails due to OverflowException. This is as result of the MigrationVersion supporting long values. Changing to decimal values seems to fix the issue as tested locally.