Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Yashu Mittal
Yashu Mittal

Posted on

     

How to version control the database?

Top comments(3)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

Migrations Mate Migrations.

CollapseExpand
 
mittalyashu profile image
Yashu Mittal
Open source
  • Location
    India
  • Work
    Full Stack Engineer
  • Joined

Like, new file for each migration?

Or replace the content of single file.

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

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.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Open source
  • Location
    India
  • Work
    Full Stack Engineer
  • Joined

More fromYashu Mittal

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp