cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user