Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can put it in git by writing the defined functions in a file.

You may use DB migration tools to run those.

It's better because logics in DB cannot be bypassed. If you write a logic or check in, say PHP, and part of your app is run in NodeJS, you have to duplicate those checks and logics. It even works when you interact with the database manually with some GUI tools which prevents you from manually inserting bad data.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: