delete remaining users not accociated with an email and not regeneratable

This commit is contained in:
Ulf Gebhardt 2022-01-19 22:03:00 +01:00
parent 427608ada3
commit d257a119b4
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -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>>) {