This commit is contained in:
2026-02-18 16:21:47 -08:00
parent b49349eb26
commit 9150a069fe
5 changed files with 6 additions and 77 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"fmt"
_ "github.com/lib/pq"
"go-weather/models"
"log"
"time"
)
@@ -45,7 +46,7 @@ func (s *DatabaseService) CreateTable() error {
`)
if err != nil {
fmt.Errorf("failed to create table: %v", err)
log.Printf("failed to create table: %v", err)
}
fmt.Println("weather_readings table ready")
return nil