Fix database upgrade for "alarms" table.