Fix sqlitecachedb_upgrade test