mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-25 07:46:49 +09:00
drop unused last_successful_update field from node table (#1754)
This commit is contained in:
1 parent
384ca03208
commit
3f162c212c
16 files changed
+387
-403
No files matched your search
@@ -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