Browse Source

fix migrate

ljw 1 year ago
parent
commit
7101139250
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cmd/apimain.go

+ 3 - 0
cmd/apimain.go

@@ -161,6 +161,9 @@ func DatabaseAutoUpdate() {
161
 				}
161
 				}
162
 			}
162
 			}
163
 		}
163
 		}
164
+		if v.Version < 246 {
165
+			db.Exec("update oauths set issuer = 'https://accounts.google.com' where op = 'google' and issuer is null")
166
+		}
164
 	}
167
 	}
165
 
168
 
166
 }
169
 }