From 9d218472183c15296bbdd17ba968c4a8db888a1f Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Mon, 25 Nov 2019 23:01:14 +0300 Subject: [PATCH] fix(snuba): Add migrate call on setup (#281) We need to run `snuba migrate` to be able to safely upgrade between Snuba versions --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 4cc93c8..56d3b95 100755 --- a/install.sh +++ b/install.sh @@ -103,7 +103,10 @@ fi echo "Boostrapping Snuba..." 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 + # `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 migrate || true; done; echo ""