ameingast / postgresql-simple-migration

PostgreSQL Schema Migrations for Haskell
Other
85 stars 48 forks source link

Show expected and actual hash if the file diverged. #33

Closed Profpatsch closed 4 years ago

Profpatsch commented 4 years ago

This will show a message like this on hash mismatch with verbose output:

… Checksum mismatch: 008-combine-first-and-last-name.sql expected: "vy1/uIrBQj/qGA7yV453ag==" hash was: "XO+65pimdyFSY1wcS4FBVQ=="

Where the expected hash can be used to override the hash in the database. This is useful for development.

ameingast commented 4 years ago

Thanks for contributing!

I will look at this (and most likely merge this into master) when I have some free time on my hands.