Fixed bug where migration code would not work when upgrading from
before-server-changes.