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