Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Alembic support #183

merged 8 commits into from May 25, 2021

feat: Alembic support #183

merged 8 commits into from May 25, 2021


Copy link

@jimfulton jimfulton commented May 24, 2021

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #65 馃

jimfulton added 6 commits May 24, 2021
The fixtures that we were autousing needed to be used explicitly, to
get randomly-generated dataset names.  One was only used for one test.

Also, fixed copyright.
We don't require alembic and most tests should run without it, however

- We run some unit tests (Python 3.8) to cover the alembic
  registration that happens when alembic is installed.

- We have a system test that demonstrates working with alembic and
  proves that the things we think should work do work. :)
@jimfulton jimfulton marked this pull request as ready for review May 25, 2021
@jimfulton jimfulton requested a review from as a code owner May 25, 2021
Copy link

@shollyman shollyman left a comment

Thanks for this. It definitely highlights we have some future opportunities to better target our bleeding and trailing edges of supported python versions with some custom testing.


# The only thing we can alter about a column is we can make it

This will change, but we're not currently watching the changes for the DDL params closely. Will need to figure out how to notify on changes like this. is how the team signals these changes for syntax historically.

Copy link
Contributor Author

@jimfulton jimfulton May 25, 2021

Hah! They just added table rename the other day.

except ImportError:
from alembic.ddl import impl
Copy link

@tseaver tseaver May 25, 2021

FWIW you could appease flake8 by just importing impl above, rather than the bare import alembic.

@jimfulton jimfulton merged commit 4d5a17c into master May 25, 2021
4 checks passed
@jimfulton jimfulton deleted the riversnake-alembic branch May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants