Created
October 9, 2020 15:39
-
-
Save m4nu56/9fdb3dbcbb95d7130d89737f5b34f96a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE journey_patterns p SET name = ( | |
SELECT l.name | |
FROM journey_patterns jp | |
JOIN routes r ON jp.route_id = r.id | |
JOIN lines l ON r.line_id = l.id | |
WHERE l.name IS NOT NULL | |
AND l.name <> '' | |
AND jp.id = p.id | |
) || ' - ' || name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment