WIP on PreAuthKeys

This commit is contained in:
Juan Font Alonso
2021-04-23 00:25:01 +02:00
parent 2555220a57
commit 176eea4a84
3 changed files with 121 additions and 1 deletions

1
db.go
View File

@@ -24,6 +24,7 @@ func (h *Headscale) initDB() error {
db.AutoMigrate(&Machine{})
db.AutoMigrate(&KV{})
db.AutoMigrate(&Namespace{})
db.AutoMigrate(&PreAuthKey{})
db.Close()
h.setValue("db_version", dbVersion)