This commit is contained in:
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
@@ -41,7 +40,7 @@ func initDBWithURL(dbURL string) error {
|
||||
return fmt.Errorf("failed to ping database: %w", err)
|
||||
}
|
||||
|
||||
log.Println("✅ Database connection established successfully")
|
||||
Logger.Println("✅ Database connection established successfully")
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -82,7 +81,7 @@ func CreateTables() error {
|
||||
}
|
||||
}
|
||||
|
||||
log.Println("✅ Database tables created successfully")
|
||||
Logger.Println("✅ Database tables created successfully")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user