From 46fba92eedee3b05a57174a551291f682bec922b Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Fri, 6 Oct 2023 19:00:37 +0530 Subject: [PATCH] Migrate mysql db to postgres --- db/sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/sql.go b/db/sql.go index 10450bd74..1305621fd 100644 --- a/db/sql.go +++ b/db/sql.go @@ -46,7 +46,7 @@ func NewSql() *sqlx.DB { name = "postgres" } - db = sqlx.MustConnect("postgres", "postgres://"+username+":"+password+"@"+host+":"+port+"?sslmode=require") + db = sqlx.MustConnect("postgres", "postgres://"+username+":"+password+"@"+host+":"+port+"?sslmode=disabled") db.Mapper = reflectx.NewMapperFunc("json", strings.ToLower) db.SetConnMaxLifetime(time.Minute * 1)