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
Switch to alembic for database migrations #6224
Conversation
35a1673
to
4b0b718
Compare
6a656b2
to
a68f70f
Compare
Could you merge #6223 and rebase your alembic branch to eliminate other 2to3 errors ? |
bc00d42
to
d82e64c
Compare
This will be required by a recent version of Alembic
@rjarry This PR should be good to go. |
Codecov Report
@@ Coverage Diff @@
## master #6224 +/- ##
==========================================
- Coverage 91.93% 91.89% -0.05%
==========================================
Files 349 331 -18
Lines 37587 37133 -454
==========================================
- Hits 34555 34122 -433
+ Misses 3032 3011 -21
Continue to review full report at Codecov.
|
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.
looks good! I think there is a small mistake with 0.8 exception
Thanks @p12tic 👍 |
New dependencies: * python-hvac: buildbot/buildbot#6058 Removed dependencies: * python-sphinxcontrib-blockdiag: buildbot/buildbot#6223 Changed dependencies: * python-sqlalchemy-migrate -> python-alembic: buildbot/buildbot#6224 * python-graphql-core is now a runtime dependency: buildbot/buildbot#5980 Other changes: * Some hacks for Windows service files are upstreamed in buildbot/buildbot#6178 git-svn-id: file:///srv/repos/svn-community/svn@1034915 9fca08f4-af9d-4005-b8df-a31f2cc04f65
New dependencies: * python-hvac: buildbot/buildbot#6058 Removed dependencies: * python-sphinxcontrib-blockdiag: buildbot/buildbot#6223 Changed dependencies: * python-sqlalchemy-migrate -> python-alembic: buildbot/buildbot#6224 * python-graphql-core is now a runtime dependency: buildbot/buildbot#5980 Other changes: * Some hacks for Windows service files are upstreamed in buildbot/buildbot#6178 git-svn-id: file:///srv/repos/svn-community/svn@1034915 9fca08f4-af9d-4005-b8df-a31f2cc04f65
The sqlalchemy-migrate package has been unmaintained for quite some time. This eventually caught up with us - since setuptools 58 one of the dependencies of sqlalchemy-migrate fails to build (see #6222).
This PR replaces the DB migration infrastructure from sqlalchemy-migrate to alembic.
Fixes #6222.
Fixes #5872.
Contributor Checklist:
master/buildbot/newsfragments
directory (and read theREADME.txt
in that directory)