Fix syntax error in create_hypertable.
All checks were successful
Build Docker image / build (push) Successful in 1m8s

This commit is contained in:
Pieter Hollander 2024-02-21 13:23:35 +01:00
parent 11792f8c53
commit ac512a898b
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg

View file

@ -353,7 +353,7 @@ func connectToPostgreSQL(pgConnStr string) error {
// Enable TimescaleDB // Enable TimescaleDB
_, err = db.Exec(` _, err = db.Exec(`
CREATE EXTENSION IF NOT EXISTS timescaledb; CREATE EXTENSION IF NOT EXISTS timescaledb;
SELECT create_hypertable('p1', 'timestamp', if_not_exists => TRUE), migrate_data => TRUE; SELECT create_hypertable('p1', 'timestamp', if_not_exists => TRUE, migrate_data => TRUE);
`) `)
if err != nil { if err != nil {
log.Fatal("Error creating TimescaleDB extension:", err) log.Fatal("Error creating TimescaleDB extension:", err)