diff --git a/packages/worker/src/migrations/1699955766418-SetTransferTypeForEmptyBlockTransfers.ts b/packages/worker/src/migrations/1699955766418-SetTransferTypeForEmptyBlockTransfers.ts index 6cd28af03b..530b535dfe 100644 --- a/packages/worker/src/migrations/1699955766418-SetTransferTypeForEmptyBlockTransfers.ts +++ b/packages/worker/src/migrations/1699955766418-SetTransferTypeForEmptyBlockTransfers.ts @@ -6,12 +6,12 @@ export class SetTransferTypeForEmptyBlockTransfers1699955766418 implements Migra WITH "updatedTransferNumbers" AS ( UPDATE transfers - SET "type" = 'transfer', "isFeeOrRefund" = false, "isInternal" = true, "updatedAt" = CURRENT_TIMESTAMP - WHERE "transactionHash" IS NULL AND "isInternal" = false + SET "type" = 'transfer', "isFeeOrRefund" = false, "isInternal" = true + WHERE "transactionHash" IS NULL RETURNING number ) UPDATE "addressTransfers" - SET "isFeeOrRefund" = false, "isInternal" = true, "updatedAt" = CURRENT_TIMESTAMP + SET "isFeeOrRefund" = false, "isInternal" = true FROM "updatedTransferNumbers" WHERE "transferNumber" = "updatedTransferNumbers"."number" `);