HomeSoftware Heritage

Fix ordering and idempotence in the 136 -> 137 upgrade script