Comments (5)
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.
@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.
With latest master
I am unable to replicate this.
My process:
- Create 3 migrations spaced a few minutes apart. Don't run any of them (in fact the contents can be blank).
- Take the highest migration number and insert it into the
schema_migrations
table manually to simulate that it has been executed. - 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.
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.
@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)
- 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.