Coder Social home page Coder Social logo

Comments (9)

tobami avatar tobami commented on August 19, 2024

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 python manage.py syncdb doesn't leave you with a new, clean DB. You need an extra step.

It would be a task for the next release (1.0.0?) to remove this migration artefact.

from codespeed.

squiddy avatar squiddy commented on August 19, 2024

I also do not like that python manage.py syncdb doesn't leave you with a new, clean DB. You need an extra step.

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 Revision.project right away? In my opinion, one of these should be done, if you plan to keep using south.

from codespeed.

tobami avatar tobami commented on August 19, 2024

IMO removing Revision.project would be a cleaner solution looking forward

from codespeed.

squiddy avatar squiddy commented on August 19, 2024

Alright, I'll send a pull request then.

from codespeed.

tobami avatar tobami commented on August 19, 2024

@squiddy do you intend to send a pull request for this yet?

from codespeed.

squiddy avatar squiddy commented on August 19, 2024

Yes, I'll send one today. Better late than never.

from codespeed.

tobami avatar tobami commented on August 19, 2024

Great, thanks

from codespeed.

squiddy avatar squiddy commented on August 19, 2024

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?

from codespeed.

tobami avatar tobami commented on August 19, 2024

Migrations are clean now

from codespeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.