From c5d6b8a1da25fbc7f283a34b07ed75dc747131c6 Mon Sep 17 00:00:00 2001 From: Kostas Dermentzis Date: Fri, 2 Feb 2024 14:18:34 +0200 Subject: [PATCH] Restore Index --- .../Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs | 2 +- .../Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs | 2 +- schema/migration-4-0002-20200810.sql | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs b/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs index 877e6a045..720c94bfe 100644 --- a/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs +++ b/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs @@ -19,7 +19,7 @@ checkForceIndexesArg = withCustomConfig commandLineForceIndexArgs babbageConfigDir testLabel $ \_ _ dbSyncEnv -> do startDBSync dbSyncEnv threadDelay 3_000_000 - assertEqQuery dbSyncEnv DB.queryPgIndexesCount 161 "there wasn't the correct number of indexes" + assertEqQuery dbSyncEnv DB.queryPgIndexesCount 162 "there wasn't the correct number of indexes" where testLabel = "CLAcheckForceIndexesArg" commandLineForceIndexArgs = diff --git a/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs b/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs index 1ca3d3632..4a26169bd 100644 --- a/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs +++ b/cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs @@ -17,7 +17,7 @@ checkForceIndexesArg = startDBSync dbSync -- Verify number of DB indexes - assertEqQuery dbSync DB.queryPgIndexesCount 161 "unexpected number of indexes" + assertEqQuery dbSync DB.queryPgIndexesCount 162 "unexpected number of indexes" where cliArgs = initCommandLineArgs {claForceIndexes = True} testLabel = "conwayCLACheckForceIndexesArg" diff --git a/schema/migration-4-0002-20200810.sql b/schema/migration-4-0002-20200810.sql index e14a44bad..4805612ca 100644 --- a/schema/migration-4-0002-20200810.sql +++ b/schema/migration-4-0002-20200810.sql @@ -1,3 +1,4 @@ CREATE INDEX IF NOT EXISTS idx_block_time ON block(time); +CREATE INDEX IF NOT EXISTS idx_tx_out_payment_cred ON tx_out(payment_cred); CREATE INDEX IF NOT EXISTS idx_pool_update_hash_id ON pool_update(hash_id);