Remove unused files from scripts/

Both setup-db.sh and sql/setup_sample_hypertable.psql don't appear
to be used anywhere in our repo or mentioned in the docs. We have
code snippets and guides to replace them, so they are no longer
needed.
This commit is contained in:
Rob Kiefer 2018-07-20 15:35:50 -04:00 committed by RobAtticus
parent 14967a03f6
commit c810be99ef
2 changed files with 0 additions and 29 deletions

View File

@ -1,18 +0,0 @@
#!/bin/bash
set -e
if [[ -z "$DB_NAME" ]]; then
echo "The DB_NAME must be set"
exit 1
fi
# Create data directories for tablespaces tests
psql -h localhost -U postgres -v ON_ERROR_STOP=1 << EOF
\echo 'Creating database: ${DB_NAME}'
CREATE DATABASE ${DB_NAME};
\c ${DB_NAME}
CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
EOF

View File

@ -1,11 +0,0 @@
CREATE TABLE conditions (
time BIGINT NOT NULL,
device_id TEXT NOT NULL,
temp DOUBLE PRECISION NULL,
humidity DOUBLE PRECISION NULL
);
CREATE INDEX ON conditions (time DESC NULLS LAST, device_id);
CREATE INDEX ON conditions (time DESC NULLS LAST, temp);
SELECT create_hypertable('"conditions"', 'time', 'device_id', 2);