User Profile
- User
- georgious
- Location
- Sofia, Bulgaria
- URL
- http://www.ovalpixels.com
Recent Articles
CakePHP YAML Migrations and Fixtures without PEAR
In his article ( [url]http://bakery.cakephp.org/articles/view/cake-db-migrations-v2-1[/url] ) at the Bakery Joel Moss describes how to use his CakePHP migrations shell. Although that project was my inspiration and I highly respect his work, his approach has several drawbacks:
[ulist]
[li] it uses PEAR - I don’t like it - that’s why I use CakePHP. I do not find it necessary to explain this - I guess it is highly subjective.[/li]
[li] it is non-modular - you cannot use it to deploy applications - it is just a shell with no ‘core’[/li]
[li] it cannot make a snapshot of your already existing schema - you haven’t used migrations yet? That’s something you will need.[/li]
[li] it cannot merge your tables - that can be crucial when you already have different versions of the schema on different platforms and you just want them all to be standardized[/li]
[/ulist]
- Published by georgious 03/09/09 - 16:11
- 10022 views
- 7 comments







well, that's right - looks like there shouldn't be an implicit auto_increment on those fields. note taken - I will have a look at how to fix this.
Hmm.. yeah, I hadn't thought about that - this happens because the shell uses a table called schema_info and creates it, if it is non-existent. Unfortunately, it looks like the check for its existence is made too late. I will have to go look into that...