From f5906cdc8ca82e14dfdb49ce7b31190a55bc906c Mon Sep 17 00:00:00 2001 From: Roman Petriv Date: Wed, 6 Mar 2024 21:03:04 +0200 Subject: [PATCH] fix: update address transfers type index order --- .../src/migrations/1709722093204-AddAddressTransferType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker/src/migrations/1709722093204-AddAddressTransferType.ts b/packages/worker/src/migrations/1709722093204-AddAddressTransferType.ts index bb5f79b330..c3e3642f00 100644 --- a/packages/worker/src/migrations/1709722093204-AddAddressTransferType.ts +++ b/packages/worker/src/migrations/1709722093204-AddAddressTransferType.ts @@ -11,7 +11,7 @@ export class AddAddressTransferType1709722093204 implements MigrationInterface { `ALTER TABLE "addressTransfers" ADD "type" "public"."addressTransfers_type_enum" NOT NULL DEFAULT 'transfer'` ); await queryRunner.query( - `CREATE INDEX "IDX_aa5a147f1f6a4acde1a13de594" ON "addressTransfers" ("address", "type", "timestamp", "logIndex") ` + `CREATE INDEX "IDX_aa5a147f1f6a4acde1a13de594" ON "addressTransfers" ("address", "type", "timestamp", "logIndex" DESC) ` ); }