hasql-mover 0.1.0.0 → 0.1.1
raw patch · 2 files changed
+5/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- hasql-mover.cabal +1/−1
- src/Hasql/Mover.hs +4/−3
hasql-mover.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: hasql-mover-version: 0.1.0.0+version: 0.1.1 synopsis: Hasql migrations library description: A SQL renovator and removalist; a library for performing SQL migrations using
src/Hasql/Mover.hs view
@@ -458,9 +458,10 @@ MigrateDown {undoDivergents, divergentUseOldDown} | null ups && (null divergents && not undoDivergents) -> throwE MigrationNothingToRollback | undoDivergents && not (null divergents)- , u@DivergentMigration {migration, oldDown} <- last divergents -> do- wrapQuery (MigrationDivergentDownError u) (runRollback migration (if divergentUseOldDown then oldDown else down migration))- throwE MigrationNothingToRollback+ , u@DivergentMigration {migration, oldDown} <- last divergents ->+ wrapQuery+ (MigrationDivergentDownError u)+ (runRollback migration (if divergentUseOldDown then oldDown else down migration)) | not (null divergents) -> throwE MigrationGotDivergents | u@UpMigration {migration} <- last ups -> do