Merge pull request #3789 from influxdata/dom/fix-catalog-migrations

fix: "catalog setup" migrations in non-public schema
pull/24376/head
kodiakhq[bot] 2022-02-21 12:22:35 +00:00 committed by GitHub
commit 50aa39ff3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -237,6 +237,7 @@ jobs:
- cache_restore
- run: cargo install sqlx-cli
- run: sqlx database create
- run: INFLUXDB_IOX_CATALOG_DSN=${DATABASE_URL} cargo run -- catalog setup
- run:
name: Cargo test
command: cargo test --workspace --features=aws,azure,azure_test

View File

@ -253,7 +253,7 @@ async fn new_raw_pool(
.execute(&mut *c)
.await?;
}
let search_path_query = format!("SET search_path TO {}", schema_name);
let search_path_query = format!("SET search_path TO {},public", schema_name);
c.execute(sqlx::query(&search_path_query)).await?;
Ok(())
})