@golemio/pid 2.3.2 → 2.3.3-dev.674484788
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/example/00_clear_test_data.sql +14 -13
- package/db/example/02_pid_line_example_115.sql +6 -6
- package/db/example/03_ropidgtfs_dump.sql +80 -80
- package/db/example/04_ropidvymi_example.sql +1 -1
- package/db/example/06_ropidgtfs_train_trips_stop_times.sql +6 -6
- package/db/example/08_update_delay_dump.sql +4 -4
- package/db/example/09_departureboards_testdata_nogapfilter.sql +1535 -1535
- package/db/example/11_ropidgtfs_stops_with_node.sql +1 -1
- package/db/example/99_precomputed_tables.sql +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
INSERT INTO "
|
|
1
|
+
INSERT INTO "ropidgtfs_stops_actual" (level_id,location_type,parent_station,platform_code,stop_id,stop_lat,stop_lon,stop_name,wheelchair_boarding,zone_id,asw_node_id,asw_stop_id) VALUES
|
|
2
2
|
('U1040L2',0,'U1040S1','1','U1040Z101P',50.069991,14.403664,'Anděl',0,'P',1040,101),
|
|
3
3
|
('U1040L2',0,'U1040S1','2','U1040Z102P',50.069967,14.403892,'Anděl',0,'P',1040,102),
|
|
4
4
|
(NULL,0,NULL,'V','U1040Z16P',50.069199,14.405263,'Na Knížecí',0,'P',1040,16),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
INSERT INTO
|
|
1
|
+
INSERT INTO ropidgtfs_services_first14days_actual
|
|
2
2
|
SELECT dates.date,
|
|
3
3
|
(date_part('day'::text, ((dates.date)::timestamp without time zone - (to_char(timezone('Europe/Prague'::text, now()), 'YYYY-MM-DD'::text))::timestamp without time zone)))::integer AS day_diff,
|
|
4
4
|
ropidgtfs_calendar.service_id
|
|
@@ -13,7 +13,7 @@ SELECT dates.date,
|
|
|
13
13
|
ORDER BY dates.date;
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
INSERT INTO
|
|
16
|
+
INSERT INTO ropidgtfs_trips_minmaxsequences_actual
|
|
17
17
|
SELECT ropidgtfs_stop_times.trip_id,
|
|
18
18
|
max(ropidgtfs_stop_times.stop_sequence) AS max_stop_sequence,
|
|
19
19
|
min(ropidgtfs_stop_times.stop_sequence) AS min_stop_sequence,
|
|
@@ -74,7 +74,7 @@ SELECT t.stop_sequence,
|
|
|
74
74
|
LEFT JOIN ropidgtfs_stop_times t7 ON ((((t.trip_id)::text = (t7.trip_id)::text) AND (t7.stop_sequence = (t.stop_sequence - 1)))))
|
|
75
75
|
WHERE t0.stop_id IS NOT NULL;
|
|
76
76
|
|
|
77
|
-
INSERT INTO
|
|
77
|
+
INSERT INTO ropidgtfs_scheduled_trips_actual
|
|
78
78
|
SELECT t0.*,
|
|
79
79
|
CASE
|
|
80
80
|
WHEN EXTRACT(HOUR FROM t0.min_stop_time) > 23
|