-
Notifications
You must be signed in to change notification settings - Fork 60
Create Django migrations, deprecate South. #94
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
Conversation
|
You mention getting this into Dogwood, but problem-builder isn't included in the Open edX named releases: it's referred to from edx-private.txt, so it's installed on edx.org, but generally not in Open edX installations. You can label a revision in the repo as compatible with Dogwood, that should be enough, no? |
|
@nedbat I've discussed your point with @bradenmacdonald and we think you are correct on this matter, in which case it is not the emergency we thought it was. It'd still be nice to include the hash update since other teams might base their private.txt on Edx's, but it is not as pressing as we feared. We can put the hash update in master if need be. Either way we'll need to coordinate with devops in order to deploy it. Aside from this, does the PR look good for you? I'd like to get the +1s necessary for merge. :) |
|
@nedbat Or, because it appears to be less critical, is there someone I should ping instead? |
|
This migration only creates the What about the other |
|
@doctoryes This is a PR against edx-release, not master. edx-release does not contain those models. We need to make migrations for the models release has first, so that we can make the migrations for the other models on master after merging in the commit here. |
|
I see - I was looking at the wrong branch. The second part of my question still stands: Did this model have South migrations before? If so, when was it deleted? |
|
@doctoryes South migrations were never deleted; they coexist and are present on this branch in problem_builder/south_migrations |
|
So those South migrations were never merged to |
|
For this repo:
So yes, problem builder has always been deployed from the edx-release branch, at least for edx.org. When the Django 1.8 upgrade happened, I guess people didn't notice that this XBlock had South Migrations, so once that upgrade merged, django started using syncdb to manage this repo instead of migrations (since it had only South migrations). So now we are trying to fix that and restore migrations by adding in proper django 1.8 migrations. |
|
Thanks for the explanation! Makes perfect sense... 👍 |
Create Django migrations, deprecate South.
Background: Adds Django 1.8 migrations to Problem Builder. The hope is to get this merged into dogwood. Otherwise any installations which use Problem Builder will have to run an extra management command to make their migration data accurate.
@nedbat This is the PR I was talking about. Will we be able to get someone from Platform to give it a look over? @itsjeyd This is ready for you to review-- if you could check it over when you start your day/before I start mine, that would be helpful.
How to test:
CREATE DATABASE edxapp2;GRANT ALL ON edxapp2.* TO 'edxapp001'@'localhost';cms.auth.jsonandlms.auth.jsonto point to the new db, 'edxapp2'.paver update_db --settings=devstack