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
Missing migration for Revision.project null=True #91
Comments
It is for historical reasons. Migrating from Revision->Project to Revision->Branch->Project was a bit messy (there are several scripts to migrate an old DB). In order for the migration to work, revision.project was left there. I also do not like that It would be a task for the next release (1.0.0?) to remove this migration artefact. |
Agreed. It probably is helpful to users migrating projects across releases, but is has its downsides (spending hours trying to migrate complex schema changes - what some lines of SQL can achieve). But the issue is still there. I had to add a migration in two branches now to keep the commits separated. Should we include the migration that is missing (to have a clean base) or remove |
IMO removing Revision.project would be a cleaner solution looking forward |
Alright, I'll send a pull request then. |
@squiddy do you intend to send a pull request for this yet? |
Yes, I'll send one today. Better late than never. |
Great, thanks |
Hm, I underestimated the work involved. I doubt I'll have time for this. First thing I noticed is that there seems to be a migration conflict. Two migrations occupy the same timeslot, 0011. Apparantly the conflict was not resolved, therefore south does not detect the 'commit_browsing_url' migration here and wants to create a new one. I don't know if recreating it as 0012 and deleting the old is enough. Removing Revision.project breaks a lot of API tests. I had a quick look at the code, but it would take some time to understand it. Maybe a8 can help here? |
Migrations are clean now |
I was going to work on #35, but when I wanted to create a new migration, south found another change:
In 6cefd8e
null=True
was added to the definition ofRevision.project
, but apparently no migration was added.If I'm not mistaken, each revision has a link to a project (a revision belongs to a branch, and that branch belongs to a project). Why can
project
be left out on a revision then?The text was updated successfully, but these errors were encountered: