Drop shared node table

This commit is contained in:
Kristoffer Dalby 2022-02-21 22:52:55 +00:00
parent 9399754489
commit 1e8f4dbdff

5
db.go
View File

@ -53,10 +53,7 @@ func (h *Headscale) initDB() error {
return err return err
} }
err = db.AutoMigrate(&SharedMachine{}) _ = db.Migrator().DropTable("shared_machines")
if err != nil {
return err
}
err = db.AutoMigrate(&APIKey{}) err = db.AutoMigrate(&APIKey{})
if err != nil { if err != nil {