Skip to content

Commit

Permalink
update auckland route long name to trip headsign
Browse files Browse the repository at this point in the history
  • Loading branch information
consindo committed Feb 26, 2024
1 parent 15fd37c commit a8e9001
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/importers/regions/nz-akl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ class AucklandImporter extends SingleImporter {
const sqlRequest = connection.get().request()
await sqlRequest.query(`
UPDATE routes
SET route_type = '712'
WHERE route_short_name LIKE '0__' OR route_short_name LIKE '4__' OR (route_short_name LIKE '5__' and agency_id <> 'WBC') OR route_short_name = '220'
SET routes.route_long_name = trips.trip_headsign
FROM routes INNER JOIN trips on routes.route_id = trips.route_id
WHERE routes.route_short_name = routes.route_long_name;
`)
log.info('Post Import: Updated Schools Routes to route_type 712')
log.info('Post Import: Updated route long names to trip headsign')
}
}

Expand Down

0 comments on commit a8e9001

Please sign in to comment.