Added SQL ALTER TABLE statements to upgrade.php to bring all the columns in line with a fresh 1.4.0 install.