mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-26 00:00:54 +08:00
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:
parent
14967a03f6
commit
c810be99ef
@ -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
|
@ -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);
|
Loading…
x
Reference in New Issue
Block a user