gradido/database/migrations/0007-login_pending_tasks_delete.ts

19 lines
653 B
TypeScript

/* 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
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
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>> */) {
// cannot undelete things
}