Comments (4)
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.
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.
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.
You can feel free to close this issue. Thanks.
from ruckusing-migrations.
Related Issues (20)
- Run migration through code HOT 1
- db:migrate throws exception if migrations dir is not writable HOT 3
- migrate_from_offset issue HOT 1
- Unable to execute query for trigger HOT 10
- DB connection issue when trying to setup Ruckusing Migrations - Abstract.php No Such File Or Directory HOT 4
- Error during migrations and rollbacks. "Reason: Commands out of sync; you can't run this command now" HOT 3
- Is it possible to execute the ruckusing-migration through http request HOT 4
- Is there any plan to have more details in schema_migrations table? HOT 1
- MySQL timestamp needs a NULL attribute when null == true
- how can i add auto_increment column to work with mysql and postgres databases? HOT 5
- FOREIGN KEY Constraint HOT 1
- Exception not properly thrown HOT 1
- Documentation for config file HOT 1
- CREATE INDEX CONCURRENTLY cannot run inside a transaction block
- Fatal error: Class 'mysqli' not found in /web/vendor/ruckusing/ruckusing-migrations/lib/Ruckusing/Adapter/MySQL/Base.php on line 1259 HOT 3
- Error:I dont know what column type of 'longtext' maps to for MySQL
- Roadmap: Integrate Percona Toolkit? HOT 1
- Use PSR LoggerInterface instead of Ruckusing_Util_Logger.
- Unable to connect via TLS for MySQL connections
- too many connections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruckusing-migrations.