Simplify postgres uuid-ossp stirng

This commit is contained in:
Kristoffer Dalby 2022-01-30 14:53:40 +00:00
parent e9adfcd678
commit 9e3318ca27

2
db.go
View File

@ -28,7 +28,7 @@ func (h *Headscale) initDB() error {
h.db = db
if h.dbType == Postgres {
db.Exec("create extension if not exists \"uuid-ossp\";")
db.Exec(`create extension if not exists "uuid-ossp";`)
}
_ = db.Migrator().RenameColumn(&Machine{}, "ip_address", "ip_addresses")