mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
simplify query (thanks @hannes)
This commit is contained in:
parent
ce16c54897
commit
71227d8505
@ -11,7 +11,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
|
||||
await queryFn(
|
||||
`UPDATE state_users
|
||||
INNER JOIN login_users ON state_users.public_key = login_users.pubkey
|
||||
SET state_users.email = IF(state_users.email = '', login_users.email, state_users.email)
|
||||
SET state_users.email = login_users.email
|
||||
WHERE state_users.email = '';`,
|
||||
)
|
||||
// Delete remaining ones
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user