add php upgrade script