Fix DB error.
All checks were successful
Build Docker image / build (push) Successful in 58s
Build Golang packages / release (push) Has been skipped

This commit is contained in:
Pieter Hollander 2024-02-22 13:16:57 +01:00
parent be4cb4b1bb
commit 68ed34472d
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg

View file

@ -421,7 +421,7 @@ func connectToPostgreSQL(pgConnStr string) error {
returning_l2 INT,
returning_l3 INT
);
CREATE UNIQUE INDEX IF NOT EXISTS timestamp_idx ON log (timestamp);
CREATE UNIQUE INDEX IF NOT EXISTS timestamp_idx ON p1 (timestamp);
`)
if err != nil {
log.Fatal("Error creating table:", err)