mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 14:37:37 +00:00
drop unused last_successful_update field from node table (#1754)
This commit is contained in:
@@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user