#!/bin/sh

# This little script is just to remember the incantation to update the bigquery
# schema. If you don't know what this is, you don't need to run it (and likely
# don't have permission to anyhow).
bqschemaupdater -message buildbucket.v2.Build -table cr-buildbucket.raw.completed_builds
bqschemaupdater -message buildbucket.v2.Build -table cr-buildbucket-dev.raw.completed_builds

#!/bin/sh

set -e

# This little script is just to remember the incantation to update the bigquery
# schema. If you don't know what this is, you don't need to run it (and likely
# don't have permission to anyhow).

# Fist, make sure you run up-to-date bqschemaupdater,
# since it's not installed by default in Infra's Go Env.
go install go.chromium.org/luci/tools/cmd/bqschemaupdater

# Actually update BQ schemas, -dev before prod.
bqschemaupdater -message buildbucket.v2.Build -table cr-buildbucket-dev.raw.completed_builds
bqschemaupdater -message buildbucket.v2.Build -table cr-buildbucket.raw.completed_builds

Update helper script to save time to future self and others.
buildbucket: Update helper script to save time to future self and others.

R=nodir

Change-Id: I2135a116eddc06787a4302b286e663b9b620a143
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/1850812
Commit-Queue: Andrii Shyshkalov <a30c74fa30536fe7ea81ed6dec202e35e149e1fd@google.com>
Auto-Submit: Andrii Shyshkalov <a30c74fa30536fe7ea81ed6dec202e35e149e1fd@google.com>
Reviewed-by: Nodir Turakulov <ef4933a197ef7b4b3f55f1bec4942aead3637a2a@chromium.org>
