> Cake currently has a migrations-like schema shell, but it only allows
> you to create tables. You cannot make changes to existing tables, and
> cannot roll back your changes.

Joel, from looking at the blog post mentioned here (http://cakebaker.
42dh.com/2008/04/13/migrations-the-cakephp-way/), you can make changes
to existing tables
"./cake schema run update ..." .

If I get the jist right, the only thing lacking for these Schema
things to support RoR style migrations is:
- rollback (which seems partly implemented in the test suite, i.e
tables get dropped)
- logic to determine if updates or creates need to be performed (can't
be too difficult, as it appears tables are already diffed by the
update logic)

Surely these are so close it'd be better to extend these to meet the
needs of Migrations, rather than have something completely seperate?






On May 19, 10:14 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Mon, May 19, 2008 at 2:08 PM, joelmoss <[EMAIL PROTECTED]> wrote:
> > > FWIW - Will use this when it has no pear dependency and does not use yaml
>
> > Well, you will be happy to know that the next version of Migrations
> > will support PHP arrays in migrations files, as well as YAML. So you
> > will have the choice. Also, MDB2 is being dumped in favour of a
> > DataDict (http://phplens.com/lens/adodb/docs-datadict.htm) which does
> > not rely on PEAR, and is much smaller.
>
> Hurrah for you!
>
> But is using DataDict needed? That more or less ensures that we will never
> see your migrations in CakePHP core
>
> Having something more native cake will be better - take a look at the Schema
> code lots of stuff which you can use.
>
> HTH
>
> Tarique
>
> --
> =============================================================
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =============================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to