N
N
Ness2019-10-15 13:42:07
Entity Framework
Ness, 2019-10-15 13:42:07

Automatic migrations when the model changes on the server?

I uploaded my bot written in .NET core to heroku, it is necessary that when the application starts, migrations are checked and applied automatically, if something in the model has changed, how can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2019-10-16
@Age1mar

It seems that here it is necessary to fasten CI.
CI will look at the repository with the model, if there are changes there, it will run a build with auto-migrations (flyway or liquibase).
This is classic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question