drop unused last_successful_update field from node table (#1754)

This commit is contained in:
Kristoffer Dalby 2024-02-18 23:22:07 +01:00 committed by GitHub
parent 384ca03208
commit 3f162c212c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 387 additions and 403 deletions

View file

@ -312,6 +312,17 @@ func NewHeadscaleDatabase(
return nil
},
},
{
// remove last_successful_update from node table,
// no longer used.
ID: "202402151347",
Migrate: func(tx *gorm.DB) error {
return tx.Migrator().DropColumn(&types.Node{}, "last_successful_update")
},
Rollback: func(tx *gorm.DB) error {
return nil
},
},
},
)