|
|
@@ -150,7 +150,7 @@ func DatabaseAutoUpdate() {
|
|
150
|
150
|
if v.Version < 245 {
|
|
151
|
151
|
//oauths 表的 oauth_type 字段设置为 op同样的值
|
|
152
|
152
|
db.Exec("update oauths set oauth_type = op")
|
|
153
|
|
- db.Exec("update oauths set issuer = 'https://accounts.google.com' where op = 'google' and issuer = ''")
|
|
|
153
|
+ db.Exec("update oauths set issuer = 'https://accounts.google.com' where op = 'google'")
|
|
154
|
154
|
db.Exec("update user_thirds set oauth_type = third_type, op = third_type")
|
|
155
|
155
|
//通过email迁移旧的google授权
|
|
156
|
156
|
uts := make([]model.UserThird, 0)
|