Memorial haiku Test page
Mar 31

Rails 1.1 broke typo. My web host suggested a fix to freeze the Rails version at 1.0, but that didn’t fix the problem. It did, however, break rake so I couldn’t un-freeze.

I decided to migrate to the trunk version of typo, which works with Rails 1.1. So I downloaded that using svn, and set it up with a clean database to reduce the number of possible sources of error. It didn’t work, but creating a new blank rails app and copying over the dispatch scripts and .htaccess file fixed it.

Next problem was to migrate my data. There’s a rake migrate command which is supposed to do this. Hey, guess what, it didn’t work! So, I ended up typing in raw SQL directly to psql to update the schema of the old database to something compatible with the new one.

That done, I dumped the old data with pg_sql --attribute-inserts, and imported it back into the new database.

After learning how to reset serial numbers, I was up and running again.

Tagged: , , ,

Leave a Reply

You must be logged in to post a comment.