Git Product home page Git Product logo

Comments (5)

salimane avatar salimane commented on July 1, 2024

Hi,

I think apart from the potentially destructive

php ruckus.php db:migrate VERSION=1NF
php ruckus.php db:migrate

Some future commands could be :

php ruckus.php db:migrate redo VERSION=1NF,2NF,5NF

or

php ruckus.php db:migrate redo VERSION=1NF-2NF,5NF

If you want to have a go at those future commands, please do. If not I will put them on my to-do list

Thanks

from ruckusing-migrations.

ruckus avatar ruckus commented on July 1, 2024

@jacobemcken - If I follow what you're saying then I believe there is an issue here. The tool SHOULD allow you to run all un-applied migrations, regardless of where the "max" applied migration is.

Well this would mimic the Rails/ActiveRecord migrations flow which was the impetus of this tool.

I think the flow should be: "run all migrations that I have not seen in order of their timestamps", regardless of what the actual timestamp is. Now, this might cause issues if another developer wrote a specific migration that conflicts with yours (lets say you both create the same table or something) but thats outside the scope of Ruckusing Migrations.

Let me dig into this.

from ruckusing-migrations.

ruckus avatar ruckus commented on July 1, 2024

With latest master I am unable to replicate this.

My process:

  1. Create 3 migrations spaced a few minutes apart. Don't run any of them (in fact the contents can be blank).
  2. Take the highest migration number and insert it into the schema_migrations table manually to simulate that it has been executed.
  3. When I run the db:migrate it does indeed show the first two pending migrations as candidates.

I think my process above represents your scenario but please let me know if I am missing something.

from ruckusing-migrations.

ruckus avatar ruckus commented on July 1, 2024

Absolutely, its outside the scope of Ruckusing, hence my note about that in the issue update.

On Feb 1, 2013, at 11:39 AM, Jacob Emcken [email protected] wrote:

@ruckus About "the other developer" who wrote a migration that conflicts. In my opinion this should never be something Ruckusing should try to prevent. Because the issue could also be that two developers have created to classes in the code that conflict - same problem different layer :)

These issues should always be resolved by however is merging the two branches


Reply to this email directly or view it on GitHub.

from ruckusing-migrations.

jacobemcken avatar jacobemcken commented on July 1, 2024

@ruckus I've played a little with it and I have no idea how I came to the conclusion that it didn't work.
It does... thanks for a great piece of software :)

from ruckusing-migrations.

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.