Skip to content

Commit

Permalink
drop schema if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Jan 6, 2024
1 parent 3cce6e8 commit 1105765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ingest_gtfs_schedule/move_to_prod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn main() {

client
.batch_execute(
"BEGIN; DROP SCHEMA gtfs CASCADE; ALTER SCHEMA gtfs_stage RENAME TO gtfs; COMMIT;",
"BEGIN; DROP SCHEMA IF EXISTS gtfs CASCADE; ALTER SCHEMA gtfs_stage RENAME TO gtfs; COMMIT;",
)
.await
.unwrap();
Expand Down

0 comments on commit 1105765

Please sign in to comment.