Bug 984393: add an upgrade script; r=Callek