db-migrate / node-db-migrate

Database migration framework for node
Other
2.32k stars 361 forks source link

Reasoning behind using template.js tog generate a files for each migration? #791

Closed wunderkind2k1 closed 2 years ago

wunderkind2k1 commented 2 years ago

I'm submitting a...

I was just wondering why we need to generate a new .js file for every migration? I think almost 99% of the code of each generated .js file is identical? On a project with a lot of migrations this behaviour results in a very long and repetitive folder full of js files of almost the same content.

In respect to "Chesterton's fence" I would like to just kindly ask what the reasoning behind that design decision could have been?

Thank you. Sven

wzrdtales commented 2 years ago

this is an open source project, we're not due you a reasoning. If you think you can improve something, go ahead work on it and open a PR.

wunderkind2k1 commented 2 years ago

I completely understand your answer. Thank you. Now I know why you use the templates.