移除无必要的迁移代码
This commit is contained in:
1 parent
ef94b7bf7c
commit
024dcc7291
1 file changed
-7
@@ -11,7 +11,6 @@ import (
|
||||
|
||||
"github.com/dushixiang/pika/internal/config"
|
||||
"github.com/dushixiang/pika/internal/handler"
|
||||
"github.com/dushixiang/pika/internal/migrations"
|
||||
"github.com/dushixiang/pika/internal/models"
|
||||
"github.com/dushixiang/pika/internal/scheduler"
|
||||
"github.com/dushixiang/pika/pkg/replace"
|
||||
@@ -42,12 +41,6 @@ func setup(app *orz.App) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// 执行 DDNS domains 字段拆分迁移
|
||||
if err := migrations.MigrateDDNSDomainsSplit(app.GetDatabase(), app.Logger()); err != nil {
|
||||
app.Logger().Error("DDNS domains 迁移失败", zap.Error(err))
|
||||
// 不返回错误,继续启动(迁移失败不应阻止应用启动)
|
||||
}
|
||||
|
||||
// 读取应用配置
|
||||
var appConfig config.AppConfig
|
||||
_config := app.GetConfig()
|
||||
|
||||
Reference in new issue
Block a user