You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- An area that does not have a type is the area for a place that has never been visited.-- We only delete this one so that we don't delete the rest of its containment.
deleteAreaPlaceLink:
DELETEFROM area_place WHERE area_id IN (
SELECTa.idFROM place p
INNER JOIN area_place ap ONp.id=ap.place_idINNER JOIN area a ONa.id=ap.area_idWHERE place_id = :placeId
ANDa.type IS NULL
);
But if we had clicked on the most specific area for the place, there will be no area that has a null type, so we will never delete its area, preventing us from refreshing the place's area if it had changed upstream.
The text was updated successfully, but these errors were encountered:
When refreshing a place, we call this:
But if we had clicked on the most specific area for the place, there will be no area that has a
null
type, so we will never delete its area, preventing us from refreshing the place's area if it had changed upstream.The text was updated successfully, but these errors were encountered: