title: Update-Database does not apply migration to database
body: <p>For packages in model project:</p>
  
  <pre><code>&lt;PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.0" /&gt;
  &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.0" /&gt;
  &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.0" /&gt;
  &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.0"&gt;
  </code></pre>
  
  <p>with</p>
  
  <pre><code> &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
  </code></pre>
  
  <p>with sdk installed on machine:</p>
  
  <pre><code>C:\WINDOWS\system32&gt; dotnet --list-sdks
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.504 [C:\Program Files\dotnet\sdk]
  2.1.505 [C:\Program Files\dotnet\sdk]
  2.1.602 [C:\Program Files\dotnet\sdk]
  2.1.604 [C:\Program Files\dotnet\sdk]
  2.1.700 [C:\Program Files\dotnet\sdk]
  2.1.801 [C:\Program Files\dotnet\sdk]
  2.1.802 [C:\Program Files\dotnet\sdk]
  2.2.104 [C:\Program Files\dotnet\sdk]
  2.2.207 [C:\Program Files\dotnet\sdk]
  3.1.101 [C:\Program Files\dotnet\sdk]
  </code></pre>
  
  <p>I run command as follow:</p>
  
  <pre><code>PM&gt; Update-Database -Context DalContext -Verbose
  Using project 'DAL\Geotik.DAL.DbAL'.
  Using startup project 'WebApis\Geotik.WebApis.GeotikApi'.
  Build started...
  Build succeeded.
  C:\Program Files\dotnet\dotnet.exe exec --depsfile D:\Repos\Geotik\Geotik\WebApis\Geotik.WebApis.GeotikApi\Geotik.WebApis.GeotikApi\bin\Debug\netcoreapp2.2\Geotik.WebApis.GeotikApi.deps.json --additionalprobingpath C:\Users\HubertWojtowiczGeoti\.nuget\packages --additionalprobingpath "C:\Program Files\dotnet\sdk\NuGetFallbackFolder" --runtimeconfig D:\Repos\Geotik\Geotik\WebApis\Geotik.WebApis.GeotikApi\Geotik.WebApis.GeotikApi\bin\Debug\netcoreapp2.2\Geotik.WebApis.GeotikApi.runtimeconfig.json "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore.tools\2.2.0\tools\netcoreapp2.0\any\ef.dll" database update --context DalContext --verbose --no-color --prefix-output --assembly D:\Repos\Geotik\Geotik\WebApis\Geotik.WebApis.GeotikApi\Geotik.WebApis.GeotikApi\bin\Debug\netcoreapp2.2\Geotik.DAL.DbAL.dll --startup-assembly D:\Repos\Geotik\Geotik\WebApis\Geotik.WebApis.GeotikApi\Geotik.WebApis.GeotikApi\bin\Debug\netcoreapp2.2\Geotik.WebApis.GeotikApi.dll --project-dir D:\Repos\Geotik\Geotik\DAL\Geotik.DAL.DbAL\ --language C# --working-dir D:\Repos\Geotik\Geotik --root-namespace Geotik.DAL.DbAL
  Using assembly 'Geotik.DAL.DbAL'.
  Using startup assembly 'Geotik.WebApis.GeotikApi'.
  Using application base 'D:\Repos\Geotik\Geotik\WebApis\Geotik.WebApis.GeotikApi\Geotik.WebApis.GeotikApi\bin\Debug\netcoreapp2.2'.
  Using working directory 'D:\Repos\Geotik\Geotik\WebApis\Geotik.WebApis.GeotikApi\Geotik.WebApis.GeotikApi'.
  Using root namespace 'Geotik.DAL.DbAL'.
  Using project directory 'D:\Repos\Geotik\Geotik\DAL\Geotik.DAL.DbAL\'.
  Finding DbContext classes...
  Finding IDesignTimeDbContextFactory implementations...
  Finding application service provider...
  Finding IWebHost accessor...
  Using environment 'Development'.
  Using application service provider from IWebHost accessor on 'Program'.
  Found DbContext 'DalContext'.
  Found DbContext 'TdcDalContext'.
  Finding DbContext classes in the project...
  Using context 'DalContext'.
  Finding design-time services for provider 'Microsoft.EntityFrameworkCore.SqlServer'...
  Using design-time services from provider 'Microsoft.EntityFrameworkCore.SqlServer'.
  Finding design-time services referenced by assembly 'Geotik.WebApis.GeotikApi'.
  No referenced design-time services were found.
  Finding IDesignTimeServices implementations in assembly 'Geotik.WebApis.GeotikApi'...
  No design-time services were found.
  Done.
  </code></pre>
  
  <p>It does nothing on database. I expected it will add migration but it didn't.
  I had before:
  <a href="https://i.stack.imgur.com/Ljx6P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ljx6P.png" alt="enter image description here"></a></p>
  
  <p>In VS2019 I have migrations:</p>
  
  <p><a href="https://i.stack.imgur.com/d91lP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d91lP.png" alt="enter image description here"></a></p>
  
  <p>I did additional checks:</p>
  
  <ol>
  <li>When I created empty database and run the same command it created only empty <code>__EFMigrationsHistory</code> table there.</li>
  <li>I reinstalled all nuget packages, but it does not help.</li>
  </ol>
  
  <p>Can sb please help me figure out why it does not apply last migration <code>20200227120415_ChangeMergeStatusIdCollumnInFuelingMergeTable</code>?</p>