rename db
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.22
|
||||
FROM golang:1.24
|
||||
|
||||
WORKDIR /backend
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func connectToPostgreSQL() (*gorm.DB, error) {
|
||||
dsn := "user=postgres password=password dbname=simplebackend host=localhost port=5432 sslmode=disable"
|
||||
dsn := "user=postgres password=password dbname=db host=localhost port=5432 sslmode=disable"
|
||||
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user