-
Notifications
You must be signed in to change notification settings - Fork 303
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 versioning to database; migrate if version is not current #4099
Add versioning to database; migrate if version is not current #4099
Conversation
Just making sure... Will it pass this use case?
|
try: | ||
assert Settings.get("private_key") and Device.objects.count() | ||
from kalite.version import VERSION |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
You're right, setting the database_version should be handled in |
Conflicts: kalite/distributed/management/commands/setup.py
This is looking good. I've merged it into alpha8. |
Can we merge this in to 0.14.x? Or will it be merged from the alpha branches? |
No, nothing is supposed to be merged via the alpha PRs... they just show what I included in the Alpha. |
Right, then shall I resolve the conflict and merge this? |
👍 |
Since it was part of alpha8, I have had it tested already a fair bit, no problems occurred. |
Conflicts: kalite/distributed/management/commands/setup.py
# Create *.json and friends database | ||
call_command("syncdb", interactive=False, verbosity=options.get( | ||
"verbosity"), database="assessment_items") | ||
Settings.set("database_version", VERSION) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Add versioning to database; migrate if version is not current
Fixes #4069 and learningequality/ka-lite-installers#96.
Edit: fixes learningequality/ka-lite-installers#96. Gotta trigger those robots.