corrected down query

This commit is contained in:
Ulf Gebhardt 2022-01-29 05:42:43 +01:00
parent 31c00a28e0
commit d75cdc0f72
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -45,7 +45,7 @@ export async function downgrade(queryFn: (query: string, values?: any[]) => Prom
`)
await queryFn(`
INSERT INTO transaction_signatures (transaction_id, signature, pubkey)
VALUES (SELECT id as transaction_id, signature, pubkey FROM transactions WHERE signature IS NOT NULL and pubkey IS NOT NULL);
(SELECT id as transaction_id, signature, pubkey FROM transactions WHERE signature IS NOT NULL and pubkey IS NOT NULL);
`)
await queryFn('ALTER TABLE `transactions` DROP COLUMN `pubkey`;')
await queryFn('ALTER TABLE `transactions` DROP COLUMN `signature`;')