A Word From Our Sponsor

Posted by Christopher Smith Sat, 11 Oct 2008 09:02:00 GMT

Okay, I’ve now finally updated to Typo 5.. I can’t say the experience was entirely painful. It turns out that “typo install” doesn’t migrate terribly well in a few nasty corner cases that I hit smack dab in the middle. The solution is to do a fresh typo install and then invoke the database migration manually with

RAILS_ENV=production db:migrate
.

The other problem I had was that the last migration script (071fixtags_naming.rb if you are curious) somehow failed (apparently some kind of issue with Ruby/Rails/ActiveRecord and Postgreql). Being comfortable with SQL but not comfortable with Rails, I just commented it out and then did the fix manually. Here is the magic SQL invocation I used for posterity:

 update tags set name = replace(name, '.', '_');

Other than the migration update, the new Typo does seem to be better and faster than the old one, although I really need to fool around with it at a time when I’m not ready to crash hard.