Yashu Mittal Posted on Feb 9, 2020 How to version control the database? #database #git #question #discuss Top comments (3) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Mohammed Samgan Khan Mohammed Samgan Khan Mohammed Samgan Khan Follow Love to code with a DRY KISS Email mohdsamgankhan@gmail.com Location USA Education B. Tech in CS Work Freelancer Joined Apr 23, 2019 • Feb 9 '20 Dropdown menu Copy link Hide Migrations Mate Migrations. Collapse Expand Yashu Mittal Yashu Mittal Yashu Mittal Follow Open source Location India Work Full Stack Engineer Joined Aug 20, 2018 • Feb 9 '20 Dropdown menu Copy link Hide Like, new file for each migration? Or replace the content of single file. Collapse Expand Mohammed Samgan Khan Mohammed Samgan Khan Mohammed Samgan Khan Follow Love to code with a DRY KISS Email mohdsamgankhan@gmail.com Location USA Education B. Tech in CS Work Freelancer Joined Apr 23, 2019 • Feb 9 '20 Dropdown menu Copy link Hide see migration is a way to manage DB with the code files. so answering your question yes, each migrations per file. When you tag your code up to a version, those files are also added to that tag. run migrate to Make DB changes and revert back to Undo. Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
Migrations Mate Migrations.
Like, new file for each migration?
Or replace the content of single file.
see migration is a way to manage DB with the code files.
so answering your question yes, each migrations per file.
When you tag your code up to a version, those files are also added to that tag.
run migrate to Make DB changes and revert back to Undo.