-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show and register migration application time (#180)
* Create Codd Schema version type and update internal schema accordingly Also, there are fewer code branches in internal migration application code. This is better because otherwise we'd have to add additional "detect codd schema >> create or update schema" code to at least one of the removed branches. It feels more sustainable to get rid of the additional branches altogether. * Fill the new application_duration columns * Reuse `registerRanMigration` internally * Test application durations are registered * Test that all codd_schema version migrations do not crash * Pretty printing durations, fixing DiffTime -> NominalDiffTime conversion This also makes `codd add` verbose by default, which seems more reasonable? Not sure. * Add color to output when the terminal supports it * Use codd logger in tests too * Float color support value out. Add some comments * Fine-tune colors and codd's output * Replace monad-logger with our own custom monad Reasons explained in Logging.hs * Remove `Verbosity` type * Beta-reduce `Newline` argument * Use function names that differ from monad-logger's to avoid confusion * Fix a silly mistake with colors. Improve one message. * Rename `MonadLogger` to `CoddLogger` to avoid confusion * Update codd's output in README
- Loading branch information
Showing
24 changed files
with
689 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.