How to version control the database? #database #git #question #discuss Yashu Mittal Feb 9, 2020 ・1 min read Discussion (3) Subscribe Image Upload image Templates Templates Editor guide Personal Moderator Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Mohammed Samgan Khan • Feb 9 '20 Dropdown menu Copy link Hide Migrations Mate Migrations. Collapse Expand Yashu Mittal Author • 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 • 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
Discussion (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.