mirror of https://github.com/1Panel-dev/1Panel
fix: 修改 migration,解决升级失败的问题 (#2171)
parent
5b00bfd1c4
commit
db443a9f82
|
@ -579,6 +579,9 @@ var AddTableFirewall = &gormigrate.Migration{
|
|||
return err
|
||||
}
|
||||
_ = tx.Exec("alter table remote_dbs rename to databases;").Error
|
||||
if err := tx.AutoMigrate(&model.Database{}); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue