Skip to content

Commit

Permalink
Add postgis to search path after table swap
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Jan 6, 2024
1 parent 1105765 commit 8f62976
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ingest_gtfs_schedule/move_to_prod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}

0 comments on commit 8f62976

Please sign in to comment.