Git Product home page Git Product logo

Comments (4)

kevcam4891 avatar kevcam4891 commented on July 20, 2024

I should mention, I'm more than willing to help develop it, I am just curious to get others opinions on feasibility, potential pitfalls.

from ruckusing-migrations.

ruckus avatar ruckus commented on July 20, 2024

Definitely the system is built towards this goal: to have developers work on different branches of a code base and then later to be able to apply any "missing" migrations for a given machine.

From what I think you're saying, I am not able to reproduce the failure in your scenario:

[cody:ruckusing-migrations (master)]$ php ruckus.php db:generate create_a

    Created migration: 20131213191841_CreateA.php

[cody:ruckusing-migrations (master)]$ php ruckus.php db:generate create_b

    Created migration: 20131213191849_CreateB.php

[cody:ruckusing-migrations (master)]$ php ruckus.php db:generate create_c

    Created migration: 20131213191951_CreateC.php

[cody:ruckusing-migrations (master)]$ mysql -u root ruckusing_migrations -e "INSERT INTO schema_migrations (version) VALUES ('20131213191951')"
[cody:ruckusing-migrations (master)]$ php ruckus.php db:migrate
Started: 2013-12-13 7:21pm UTC

[db:migrate]:
    Migrating UP:
========= CreateA ======== (0.00)
========= CreateB ======== (0.00)


Finished: 2013-12-13 7:21pm UTC

[cody:ruckusing-migrations (master)]$

In this example I create 3 migrations (with a delay between each) and then I manually insert the 3rd migration into the DB as if I have ran it. I then run db:migrate and the system knows it only needs to apply the prior missing ones.

Are you talking about a different scenario?

from ruckusing-migrations.

kevcam4891 avatar kevcam4891 commented on July 20, 2024

The scenario you provided does work. One of the issues I was running into though was CreateB failing because something that successfully ran in CreateC (column that no longer exists, etc), thus other important changes in B are never realized in my clone of the project. I interpreted it as CreateB just not running because CreateC already existed, but I now know that is not the case.

I guess that's not so much a function of the code not working as it should, but rather a failure of communication among developers. BTW: I really like this product, and have already added some features, I will be sending in a pull request soon!

from ruckusing-migrations.

 avatar commented on July 20, 2024

You can feel free to close this issue. Thanks.

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.