description migration: 0005-admin_tables

This commit is contained in:
Ulf Gebhardt 2021-12-21 02:37:05 +01:00
parent a467c8d945
commit e90744e1f9
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -1,12 +1,6 @@
/* MIGRATION FOR ADMIN INTERFACE
*
* This migration is special since it takes into account that
* the database can be setup already but also may not be.
* Therefore you will find all `CREATE TABLE` statements with
* a `IF NOT EXISTS`, all `INSERT` with an `IGNORE` and in the
* downgrade function all `DROP TABLE` with a `IF EXISTS`.
* This ensures compatibility for existing or non-existing
* databases.
* This migration adds the table `login_pending_tasks_admin` to store pending creations
*/
export async function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {