Skip to content

Commit

Permalink
[SCRIPT] Update DROP DATABASE execution throught influx cli
Browse files Browse the repository at this point in the history
  • Loading branch information
clementpl committed Jul 11, 2019
1 parent d06aadf commit 2511d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/influx/init-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ path=$(dirname "$0")
docker exec influxdb rm -rf /testset
docker cp $path/testset influxdb:/
# Drop database
curl -XPOST "http://127.0.0.1:8086/query" --data-urlencode "q=DROP DATABASE \"test_crypto_series\""
# curl -XPOST "http://127.0.0.1:8086/query" --data-urlencode "q=DROP DATABASE \"test_crypto_series\""
docker exec influxdb influx -execute "DROP DATABASE \"test_crypto_series\""
# Restore database
docker exec influxdb influxd restore -portable -db test_crypto_series /testset

Expand Down

0 comments on commit 2511d78

Please sign in to comment.