okfn/ckan — pull request #453 by seanh (2013-02-22 15:19:53+00:00)
Title: [#294] Add default values to migration 64

Add a default value to the email_last_sent column that is added in
migration script 64. This fixes a crash when upgrading the database, if
the dashboard table already contained data.

Fixes #294.

To reproduce this you have to checkout a commit from just before migration script 64 was added (one where the dashboard table exists, but doesn't have the email_last_sent column yet), initialise your db, run ckan, register a user, follow something, then checkout master and run paster db upgrade, it'll crash. With this fix, it works.

Migration tests are passing too.