diff options
Diffstat (limited to 'internal/db/db.go')
-rw-r--r-- | internal/db/db.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/db.go b/internal/db/db.go index b58d88c8..e67ffde9 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -73,7 +73,7 @@ func newDSN(opts conf.DatabaseOpts) (dsn string, err error) { case "postgres": host, port := parsePostgreSQLHostPort(opts.Host) - dsn = fmt.Sprintf("user='%s' password='%s' host='%s' port='%s' dbname='%s' sslmode='%s' search_path='%s'", + dsn = fmt.Sprintf("user='%s' password='%s' host='%s' port='%s' dbname='%s' sslmode='%s' search_path='%s' application_name='gogs'", opts.User, opts.Password, host, port, opts.Name, opts.SSLMode, opts.Schema) case "mssql": |