diff --git a/db.go b/db.go index f4aae335..e3bc5523 100644 --- a/db.go +++ b/db.go @@ -187,7 +187,9 @@ func (h *Headscale) initDB() error { return err } - err = db.AutoMigrate(&Namespace{}) + _ = db.Migrator().RenameTable("Namespace", "User") + + err = db.AutoMigrate(&User{}) if err != nil { return err }