Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cake migrations dump should mention details #244

Closed
dereuromark opened this issue Jun 19, 2016 · 3 comments
Closed

cake migrations dump should mention details #244

dereuromark opened this issue Jun 19, 2016 · 3 comments
Milestone

Comments

@dereuromark
Copy link
Member

dereuromark commented Jun 19, 2016

The

cake migrations dump

should mention how it creates that dump.
Like from previous migration files or directly from the current DB schema.

Currently the problem seems to be that a freshly generated dump file will result in a lot of (wrong because unchanged) tables for the next "diff" baked with cake bake migration_diff ....

Mysql and Cake3.2

@HavokInspiration
Copy link
Member

This issue is potentially linked to #232, but I'm not really sure. I didn't get a chance to look into it to see what is going on.

But out of curiosity, can you explain in details what you are doing (schema db, commands, etc.) and what you get ?
This will give me another scenario to test and allow me to see if this is linked to #232 or not.

@HavokInspiration HavokInspiration added this to the 1.6.3 milestone Jun 20, 2016
@dereuromark
Copy link
Member Author

Windows and latest stable bundle version.
Removing the .lock file from Migrations folder and running the dump command.
Then running the bake migration_diff - which should have been outputting a "no changes" file IMO.

@HavokInspiration
Copy link
Member

I could reproduce and opened #248 to fix what you are experiencing @dereuromark

I can a note in the docs about what the dump command does.
FYI, it will now (after #248 is merged) add every schemas from the tables it finds in your connection and add them to the dump file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants