mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 00:26:37 +08:00
[优化] 修复数据库迁移问题
This commit is contained in:
@@ -64,7 +64,12 @@ func migrateV19(ctx Context, db *gorm.DB, backend string) error {
|
||||
slog.Info("dropped tunnel_id column from proxy_routes")
|
||||
}
|
||||
|
||||
return ctx.ApplyCurrentSchema(db, backend)
|
||||
slog.Info("v19: starting ApplyCurrentSchema (auto-migrate all tables)")
|
||||
if err := ctx.ApplyCurrentSchema(db, backend); err != nil {
|
||||
return err
|
||||
}
|
||||
slog.Info("v19: ApplyCurrentSchema completed")
|
||||
return nil
|
||||
}
|
||||
|
||||
func validateV19(ctx Context, db *gorm.DB, backend string) error {
|
||||
|
||||
Reference in New Issue
Block a user