mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
delete remaining users not accociated with an email and not regeneratable
This commit is contained in:
parent
427608ada3
commit
d257a119b4
@ -17,6 +17,8 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
|
||||
SET state_users.email = IF(state_users.email = '', login_users.email, state_users.email)
|
||||
WHERE state_users.email = '';`,
|
||||
)
|
||||
// Delete remaining ones
|
||||
await queryFn(`DELETE FROM state_users WHERE email = ''`)
|
||||
}
|
||||
|
||||
export async function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user