Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ CREATE TABLE transfers (
to_stop_id text not null,
transfer_type int not null REFERENCES transfer_types(transfer_type),
min_transfer_time int,
-- Unofficial fields
from_route_id text default null,
to_route_id text default null,
service_id text default null,
from_trip_id text default null,
to_trip_id text default null,
CONSTRAINT transfers_from_stop_fkey FOREIGN KEY (feed_index, from_stop_id)
REFERENCES stops (feed_index, stop_id),
CONSTRAINT transfers_to_stop_fkey FOREIGN KEY (feed_index, to_stop_id)
Expand All @@ -376,9 +376,10 @@ CREATE TABLE transfers (
REFERENCES routes (feed_index, route_id),
CONSTRAINT transfers_to_route_fkey FOREIGN KEY (feed_index, to_route_id)
REFERENCES routes (feed_index, route_id),
CONSTRAINT transfers_service_fkey FOREIGN KEY (feed_index, service_id)
REFERENCES calendar (feed_index, service_id),
CONSTRAINT transfers_pkey PRIMARY KEY (feed_index, from_stop_id, to_stop_id)
CONSTRAINT transfers_from_trip_fkey FOREIGN KEY (feed_index, from_trip_id)
REFERENCES trips (feed_index, trip_id),
CONSTRAINT transfers_to_trip_fkey FOREIGN KEY (feed_index, to_trip_id)
REFERENCES trips (feed_index, trip_id)
);

CREATE TABLE pathway_modes (
Expand Down