Schema management with DB migrations #2063
Unanswered
lngr
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following popped up in this thread: https://twitter.com/jeremydmiller/status/1487071742472462341
I mentioned we are using DbUp for schema migrations. Here is what we do on application startup (Program.cs). It's very simple, but works great for us:
So basically, if some developer implements some changes that changes Marten's schema, upon the next startup the application will write out a patch file to the DbUp "Migrations" directory and stop. The developer can then review the change and add the file to Git. On the next run, the schema update is applied.
Beta Was this translation helpful? Give feedback.
All reactions