Fixed failed update in MySQL strict mode.

The strict mode prevents NULL columns to be changed into another default
value. To solve this all columns having NULL be updated to the new
default value prior to changing the table structure. (closes #243)