drop unused last_successful_update field from node table (#1754)
This commit is contained in:
parent
384ca03208
commit
3f162c212c
16 changed files with 387 additions and 403 deletions
|
@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue