fix(snuba): Add migrate call on setup (#281)
We need to run `snuba migrate` to be able to safely upgrade between Snuba versions
This commit is contained in:
parent
5d064c2224
commit
9d21847218
@ -103,7 +103,10 @@ fi
|
|||||||
echo "Boostrapping Snuba..."
|
echo "Boostrapping Snuba..."
|
||||||
docker-compose up -d kafka redis clickhouse
|
docker-compose up -d kafka redis clickhouse
|
||||||
until $(docker-compose run --rm clickhouse clickhouse-client -h clickhouse --query="SHOW TABLES;" | grep -q sentry_local); do
|
until $(docker-compose run --rm clickhouse clickhouse-client -h clickhouse --query="SHOW TABLES;" | grep -q sentry_local); do
|
||||||
|
# `bootstrap` is for fresh installs, and `migrate` is for existing installs
|
||||||
|
# Running them both for both cases is harmless so we blindly run them
|
||||||
docker-compose run --rm snuba-api bootstrap --force || true;
|
docker-compose run --rm snuba-api bootstrap --force || true;
|
||||||
|
docker-compose run --rm snuba-api migrate || true;
|
||||||
done;
|
done;
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user