diff --git a/hscontrol/db/db.go b/hscontrol/db/db.go index bcd07e47..870ad599 100644 --- a/hscontrol/db/db.go +++ b/hscontrol/db/db.go @@ -317,7 +317,14 @@ func NewHeadscaleDatabase( // no longer used. ID: "202402151347", Migrate: func(tx *gorm.DB) error { - return tx.Migrator().DropColumn(&types.Node{}, "last_successful_update") + err := tx.Migrator().DropColumn(&types.Node{}, "last_successful_update") + if err != nil && strings.Contains(err.Error(), `of relation "nodes" does not exist`) { + return nil + } else { + return err + } + + return err }, Rollback: func(tx *gorm.DB) error { return nil