removed todo no longer applying

This commit is contained in:
Ulf Gebhardt 2022-02-04 13:41:24 +01:00
parent b54ae48162
commit 7ba01d3f06
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -14,7 +14,6 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
await queryFn('ALTER TABLE `state_users` DROP INDEX `public_key`;')
// Allow NULL on the `state_users` pubkey like it is allowed on `login_users`
// TODO remove the random key shenanigans
await queryFn('ALTER TABLE `state_users` MODIFY COLUMN `public_key` binary(32) DEFAULT NULL;')
// instead use a unique constraint for the email like on `login_users`