Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

is necessary to execute the Migrator.EXE after the deployment in order to patch the database, or if it happens automatically when the WebApi is restarted? #11558


User avatar
0
pliaspzero created

Dear Support Team,

We are currently working on an ASPZERO project using Angular and .NET Core.

We are planning to do a Copy&Paste deployment and we are wondering if it is necessary to execute the Migrator.EXE after the deployment in order to patch the database, or if it happens automatically when the WebApi is restarted.

If the database patching does not occur automatically with a WebApi restart, is it possible to call and execute the Migrator.EXE through a WebApi?

Thank you in advance for your assistance.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @pliaspzero

    You can either run Migrator.exe or manually generate migration scripts and apply them. However, we suggest running Migrator.exe and we don't suggest calling Migrator.exe in the WebAPI project.