You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm happily using golang-migrate currently (as a library) to carry my migration needs. For a particular case, I need to store the migration version outside of the database that has to be migrated, or in a file.
I can't find any way with the current release to do that (neither did I find any other tool able to). So I'm going to fork golang-migrate to implement this. My idea is to introduce a VersionDrv struct (similar in spirit to DatabaseDrv or SourceDrv) to define how to handle version storage.
If you think that it's something that should be integrated in official release, let me know; I will submit a PR to do so. I will accept also any suggestions about the way to implement this accordingly with current architecture guidelines.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm happily using golang-migrate currently (as a library) to carry my migration needs. For a particular case, I need to store the migration version outside of the database that has to be migrated, or in a file.
I can't find any way with the current release to do that (neither did I find any other tool able to). So I'm going to fork golang-migrate to implement this. My idea is to introduce a VersionDrv struct (similar in spirit to DatabaseDrv or SourceDrv) to define how to handle version storage.
If you think that it's something that should be integrated in official release, let me know; I will submit a PR to do so. I will accept also any suggestions about the way to implement this accordingly with current architecture guidelines.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions