Skip to content

Commit 5c671c2

Browse files
authored
Merge pull request #1964 from Liqwid-Labs/no-schema-migration-speed-up
Speed up no ledger migration
2 parents 166d3a2 + 601551b commit 5c671c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardano-db/src/Cardano/Db/Migration.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ readStageFromFilename fn =
396396
noLedgerMigrations :: SqlBackend -> Trace IO Text -> IO ()
397397
noLedgerMigrations backend trce = do
398398
void $ runDbIohkLogging backend trce $ do
399-
rawExecute "update redeemer set fee = null" []
399+
rawExecute "update redeemer set fee = null where fee is not null" []
400400
rawExecute "delete from reward" []
401401
rawExecute "delete from epoch_stake" []
402402
rawExecute "delete from ada_pots" []

0 commit comments

Comments
 (0)