From 8f62976d81bdde6d2fe1d1e60e60bbfd0d8c07e4 Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Fri, 5 Jan 2024 23:22:41 -0800 Subject: [PATCH] Add postgis to search path after table swap --- src/ingest_gtfs_schedule/move_to_prod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ingest_gtfs_schedule/move_to_prod.rs b/src/ingest_gtfs_schedule/move_to_prod.rs index 5ccf326a..025b8ab5 100644 --- a/src/ingest_gtfs_schedule/move_to_prod.rs +++ b/src/ingest_gtfs_schedule/move_to_prod.rs @@ -48,5 +48,10 @@ async fn main() { .await .unwrap(); + println!("Adding Postgis to search path"); + + client.batch_execute("ALTER DATABASE gtfs SET search_path = public, postgis;") + .await.unwrap(); + println!("Done!"); }