mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
delete pending tasks
This commit is contained in:
parent
791b05b481
commit
af52da327a
15
database/migrations/0007-login_pending_tasks_delete.ts
Normal file
15
database/migrations/0007-login_pending_tasks_delete.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/* MIGRATION TO CLEAN PRODUCTION DATA
|
||||
*
|
||||
* delete the pending tasks to not have any dead entries.
|
||||
* the way we interact with the table is now differently
|
||||
* and therefore we should clear it to avoid conflicts
|
||||
* and dead entries
|
||||
*/
|
||||
|
||||
export async function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
||||
await queryFn('DELETE FROM `login_pending_tasks`;')
|
||||
}
|
||||
|
||||
export async function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
||||
return [] // cannot undelete things
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user