feat(db): adjust db/bin/trip_updates.sh

This commit is contained in:
dancingCycle 2023-11-30 14:56:12 +01:00
parent f0552030c5
commit 7cbb31bdd3
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
#
echo "Started..."
#

View File

@ -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
);