Skip to content

Commit

Permalink
Order log entries when verifying migration status (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
rimmington authored Jun 11, 2021
1 parent f461925 commit 77c4456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beam-migrate/Database/Beam/Migrate/Simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bringUpToDateWithHooks :: forall db be m
bringUpToDateWithHooks hooks be@(BeamMigrationBackend { backendRenderSyntax = renderSyntax' }) steps = do
ensureBackendTables be

entries <- runSelectReturningList $ select $
entries <- runSelectReturningList $ select $ orderBy_ (asc_ . _logEntryId) $
all_ (_beamMigrateLogEntries (beamMigrateDb @be @m))
let verifyMigration :: Int -> T.Text -> Migration be a -> StateT [LogEntry] (WriterT (Max Int) m) a
verifyMigration stepIx stepNm step =
Expand Down

0 comments on commit 77c4456

Please sign in to comment.