forked from jtdaugherty/dbmigrations
-
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.
This patch defines a `MigrationYaml` record that represents the shape of a migration's Yaml file directly, then decodes to it. This obviates the manual "parsing" from a decoded `Object`. It also produces better error messages. The tests don't pass because we have actually been using Show/Read for the `UTCTime` fields instead of a JSON representation. I'll have to introduce a new type to account for that without breaking compatibility.
- Loading branch information
Showing
2 changed files
with
45 additions
and
86 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