diff --git a/ci/scripts/combine-dbs.sh b/ci/scripts/combine-dbs.sh index 503f9496df..2f40f0cc45 100644 --- a/ci/scripts/combine-dbs.sh +++ b/ci/scripts/combine-dbs.sh @@ -3,18 +3,10 @@ set -euxo pipefail DB_NAME=${DB_NAME:-'benchmark.db'} -# Possibly apply migrations to the main db, -# working on a copy with a known name so it's -# easier to refer to in sqlite -if [ -f "$DB_NAME" ]; then - cp "$DB_NAME" benchmark.tmp.db -else - sqlite3 benchmark.tmp.db "VACUUM;" -fi -DB_NAME=benchmark.tmp.db alembic upgrade head +alembic upgrade head # Delete old records and vacuum to reduce on-disk size -sqlite3 benchmark.tmp.db < date('now', '-90 days')); VACUUM; EOF @@ -34,7 +26,7 @@ do for tab in "tpch_run" "test_run" do sqlite3 "$FILE" <