removed obsolete todos

This commit is contained in:
Ulf Gebhardt 2023-06-20 10:42:39 +02:00
parent 580c5940d2
commit d23e1a5aad
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -9,7 +9,6 @@
export async function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
await queryFn('UPDATE `communities` SET `public_key` = UNHEX(publicKey);')
await queryFn('ALTER TABLE `communities` MODIFY COLUMN `public_key` binary(32) NOT NULL;')
// TODO: it is unclear if this is actually nullable - the model defines "default: null, nullable: true", but the table seems to be created without nullability(?)
await queryFn(
'ALTER TABLE `federated_communities` MODIFY COLUMN `public_key` binary(32) NULL DEFAULT NULL;',
)
@ -18,7 +17,6 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
export async function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
await queryFn('ALTER TABLE `communities` MODIFY COLUMN `public_key` binary(64) NOT NULL;')
await queryFn('UPDATE `communities` SET `public_key` = HEX(publicKey);')
// TODO: see above
await queryFn(
'ALTER TABLE `federated_communities` MODIFY COLUMN `public_key` binary(64) NULL DEFAULT NULL;',
)