A Weblog written, styled and hacked by Joel Moss
I just pushed out a pretty good update of Migrations today. Version 3.3 includes some cool updates that make migrations even easier and even faster to use. (didn’t I say that last time?)
The biggest change is the introduction of migration file generation within the Migrate shell itself. This functionality used to be included within the accompanying Generator shell. But I decided that this was a little unnecessary, so as soon as Fixtures is updated (later this week) the Generator shell will be phased out and deprecated.
I also cleaned up the code a little and documented some more. There is now a help command that will help you with how to use it.
So, you can get v3.3 of Migrate.php from CakeForge.
Here are the other changes:
Examples:
name: [string, 32, not_null] # will create a string(varchar) column with length 32 and not null
- no_dates # no date columns will be created (don't forget the hyphen)
- [no_dates, no_id] # no date or ID columns will be created (don't forget the hyphen)
Enjoy one and all!
My name is Joel Moss, a web developer and all round nice guy, living in Manchester, England. I am currently working full time for ShermansTravel.com, but I fill whatever spare time I have with lots of good and wholesome "stuff"! Like developing my own ideas; such as Tooum, contributing to the excellent CakePHP framework, and doing more work for ShermansTravel.
So this is my blog - my soap box! Here I attempt to share my likes, my dislikes, and my opinions. As well as providing some occasional respite from the daily crap we all endure. Enjoy ;)
Hey, if you want to reach me, i'm available via email:joel[at]developwithstyle[dot]com, and AIM:joelkmoss.
Leave a reply