fix: migrate legacy tunnel probe target columns

This commit is contained in:
sagitchu
2026-05-01 23:15:21 +08:00
parent 521fe79b15
commit 58ef260755
2 changed files with 60 additions and 1 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ func prepareSQLiteLegacyColumns(db *gorm.DB) error {
}
if m.HasTable(&model.Tunnel{}) {
for _, field := range []string{"Inx", "IPPreference"} {
for _, field := range []string{"Inx", "IPPreference", "ProbeTargetHost", "ProbeTargetPort"} {
if m.HasColumn(&model.Tunnel{}, field) {
continue
}