Have you got models defined for all the tables in your schema file?
If not, running "cake schema run update" will try to add all the columns for any tables missing model files, so I discovered myself today.
Regards,
Ian
________________________________________
IMiJ Ltd
http://www.imij.co.uk
http://www.ianmjones.com
http://twitter.com/ianmjones
On 25 Mar 2010, at 13:02, Martin Westin wrote:
> I thought I'd give schema migrations a try. But something small must
> be horribly wrong with how I am trying to use the schema shell.
>
> I run "cake schema run update" on the database that just generated the
> schema and the shell wants to add all the columns to the tables again.
> That can't be right? What's wrong with my schema that the shell thinks
> all tables are without columns?
>
> I am on Cake 1.2.6 and Apache2, php5.3, MySQL 5... on a Mac with Snow
> Leopard.
>
> I tried creating an empty db. I ran a create and it created all
> tables... then I ran update and it again wanted to add all (existing)
> columns to the tables.
>
> Any ideas?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> 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?hl=en
>
> To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment