Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make docker init script respect COCKROACH_DATABASE when processing SQL files #140650

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make docker init script respect COCKROACH_DATABASE when processing SQ…
…L files

Should close #137735
  • Loading branch information
mecab authored Feb 7, 2025
commit 538f1914bb8cef914cadbea27e3ce8b4959d6796
2 changes: 1 addition & 1 deletion build/deploy/cockroach.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ process_init_files() {

# run_sql_query is a helper function to run sql queries.
run_sql_query() {
$cockroach_entrypoint sql --url="$(cat server.url)" "$@"
$cockroach_entrypoint sql --url="$(cat server.url)" --database="${COCKROACH_DATABASE}" "$@"
}

# db_already_exists runs a sql query to check if the database already exists.
Expand Down