diff --git a/bootstrap/app.go b/bootstrap/app.go index 85545ed6ac2d15f2604536865d150d19f33a3b5f..a0a7fe6f1dace703f5cd7eef80ec310d2a92fc46 100644 --- a/bootstrap/app.go +++ b/bootstrap/app.go @@ -14,7 +14,7 @@ func InitApplication() { / /___| | (_) | |_| | (_| | | | __/\ V / __/ \____/|_|\___/ \__,_|\__,_|_| \___| \_/ \___| -V` + conf.BackendVersion + ` Commit #` + conf.LastCommit + ` Pro=` + conf.IsPro + ` + V` + conf.BackendVersion + ` Commit #` + conf.LastCommit + ` Pro=` + conf.IsPro + ` ================================================ `) diff --git a/models/migration.go b/models/migration.go index c2e7feadddc8bde106b09ed2c9dca5b99e13b3fa..3fcbe9115efb374053a11ec57545897c1e974598 100644 --- a/models/migration.go +++ b/models/migration.go @@ -11,8 +11,7 @@ import ( // 是否需要迁移 func needMigration() bool { var setting Setting - DB.Where("name = ?", "database_version").First(&setting) - return setting.Value != conf.RequiredDBVersion + return DB.Where("name = ?", "db_version_"+conf.RequiredDBVersion).First(&setting).Error != nil } //执行数据迁移 @@ -122,7 +121,7 @@ box-sizing: border-box; font-size: 14px; margin: 0;">
亲爱的{userName}: |
请点击下方按钮完成密码重设。如果非你本人操作,请忽略此邮件。 |
重设密码 |
感谢您选择{siteTitle}。 |