Monday, March 28, 2011

Migrations plugin - how to generate schema diffs

So here I am kind of sutck with this migration plugin. I'm trying to generate schema diffs, followed the tutorials on the cakeDC website and doc.
The first three steps are ok.

I generate my first migration with cake migration generate.
Then I generate a schema file with cake schema generate.
Generate another migration with cake migration generate.

From now on all migrations i generate seems to be related to the schema file generated by the cakephp console on the second step above. So if table 'examples' is created on third step it still appears on every other migration I generate later. I guess it shouldnt be like that as I keep getting errors like table 'examples' already exists when I try to execute a 'cake migration all' on other workstation.

Am I doing something stupid, or missing something? Any help would be appreciated.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: