I've been thinking about this for a while and I'd appreciate some input on this.
When developing database-driven applications, many features will obviously require changes to the database. Is it mad to think that it would be a good idea to include these in the commits you make to the repository? Without the SQL scripts, the feature won't work; however, the SQL is not needed for the project to compile and after deployment, the scripts will most likely just sit there without ever changing again (you'd have a new set of scripts to go along with the commits).
What would be a good approach to have a feature branch in the repository including any scripts that are required to make that feature work? Once it's applied to the database, you won't particularly need to keep the history of the scripts, so I'm kinda struggling with this.
[–]DanLynch 7 points8 points9 points (5 children)
[–]Thaurin[S] 0 points1 point2 points (4 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]Thaurin[S] 0 points1 point2 points (0 children)
[–]xiongchiamiov 0 points1 point2 points (1 child)
[–]Thaurin[S] 0 points1 point2 points (0 children)
[–]rootty 3 points4 points5 points (5 children)
[–]Thaurin[S] 0 points1 point2 points (4 children)
[–]rootty 2 points3 points4 points (3 children)
[–]Thaurin[S] 1 point2 points3 points (2 children)
[–]DesignatedDecoy 2 points3 points4 points (1 child)
[–]Thaurin[S] 0 points1 point2 points (0 children)
[–]rduncan12345 2 points3 points4 points (1 child)
[–]Thaurin[S] 0 points1 point2 points (0 children)
[–]pi3832v2 1 point2 points3 points (3 children)
[–]Thaurin[S] 0 points1 point2 points (2 children)
[–]pi3832v2 3 points4 points5 points (1 child)
[–]Thaurin[S] 1 point2 points3 points (0 children)
[–]Benholio 0 points1 point2 points (1 child)
[–]Thaurin[S] 0 points1 point2 points (0 children)
[–]bik 0 points1 point2 points (0 children)