diff --git a/scripts/setup-db.sh b/scripts/setup-db.sh deleted file mode 100755 index 71becad89..000000000 --- a/scripts/setup-db.sh +++ /dev/null @@ -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 diff --git a/scripts/sql/setup_sample_hypertable.psql b/scripts/sql/setup_sample_hypertable.psql deleted file mode 100644 index 743820222..000000000 --- a/scripts/sql/setup_sample_hypertable.psql +++ /dev/null @@ -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);