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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add migration version-check function #58

Merged
merged 3 commits into from
Feb 13, 2020
Merged

Conversation

rod-glover
Copy link
Contributor

@rod-glover rod-glover commented Feb 12, 2020

This PR adds a function that checks the migration version of the database in use against the latest migration version in the repo. Resolves #57 .

Question: Should this function be invoked automatically when pycds.Base.create_all() is invoked? That would ensure all client code must be using a version-compatible release of PyCDS, but it may be too meddlesome. @jameshiebert ?

I'm tending toward "no" on this question, and it can easily be added in a later PR.

@rod-glover rod-glover requested review from jameshiebert, corviday and nikola-rados and removed request for jameshiebert and corviday February 12, 2020 01:25
Copy link

@nikola-rados nikola-rados left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rod-glover rod-glover merged commit 673bbee into master Feb 13, 2020
@rod-glover rod-glover deleted the i57-version-check branch February 13, 2020 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add version-check function
2 participants