feat(db): adjust db/bin/trip_updates.sh
This commit is contained in:
parent
f0552030c5
commit
7cbb31bdd3
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
#
|
||||
echo "Started..."
|
||||
#
|
||||
|
|
|
@ -8,13 +8,13 @@ DROP TABLE IF EXISTS :schema.trip_updates;
|
|||
|
||||
CREATE TABLE IF NOT EXISTS :schema.trip_updates
|
||||
(
|
||||
trip_trip_id text,
|
||||
trip_route_id text,
|
||||
trip_schedule_relationship text,
|
||||
vehicle_id text,
|
||||
vehicle_label text,
|
||||
vehicle_license_plate,
|
||||
timestamp_gtfsr timestamptz,
|
||||
trip_trip_id text NULL,
|
||||
trip_route_id text NULL,
|
||||
trip_schedule_relationship text NULL,
|
||||
vehicle_id text NULL,
|
||||
vehicle_label text NULL,
|
||||
vehicle_license_plate text NULL,
|
||||
timestamp_gtfsr timestamptz NULL,
|
||||
timestamp_pgsql timestamptz NOT NULL DEFAULT now(),
|
||||
delay int
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue