Fix syntax error in create_hypertable.
All checks were successful
Build Docker image / build (push) Successful in 1m8s
All checks were successful
Build Docker image / build (push) Successful in 1m8s
This commit is contained in:
parent
11792f8c53
commit
ac512a898b
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -353,7 +353,7 @@ func connectToPostgreSQL(pgConnStr string) error {
|
|||
// Enable TimescaleDB
|
||||
_, err = db.Exec(`
|
||||
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 {
|
||||
log.Fatal("Error creating TimescaleDB extension:", err)
|
||||
|
|
Loading…
Reference in a new issue