rust-db / refinery

Powerful SQL migration toolkit for Rust.
MIT License
1.35k stars 126 forks source link

feat: make sql code hash independent from CR/LF line endings and leading/traiing spaces #344

Open dmk978 opened 4 months ago

dmk978 commented 4 months ago

Currently SQL migration code is treated as binary files, which is really inconvenient for source tracking.

As text files often differ in line endings and sometimes leading tabs/spaces, I think it makes sense to make hash code independent from that small and irrelevant changes.

But, of course, it will break compatibility with previous versions.