-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add basic migration system #42
Conversation
Co-authored-by: maudetes <maudet.estelle@gmail.com>
Co-authored-by: maudetes <maudet.estelle@gmail.com>
@maudetes asyncpg-trek is now on pypi! And I'm an official contributor ;-) |
Very cool! I’m curious how you folks feel about the whole “graph of versions” vs linear migrations (hence the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I find the usage and the _LATEST_REVISION hack simple enough!
I added a very blocking comment, though :p
Co-authored-by: maudetes <maudet.estelle@gmail.com>
@adriangb I have to admit I've never used a migration system with such a feature, so I'm not sure what use case it could apply to. Maybe ideas will come over time? We're not using it for complicated stuff right now. I don't known if it's linked but your library was by far the simplest (maintained) I've seen. I only had to resort to the |
Pending #29, this allows us to write simple SQL migrations.
The library is unfortunately not published on pypi, but code is clean and simple. This should only be temporary anyway.
I made a small hack with the
_LATEST_REVISION
file in order to be able to upgrade to the latest revision (sic) without knowing its name.