Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i specify product version when working with migrations?

Here is a quick sample on how the [dbo].[__EFMigrationsHistory] table looks like:

EF migrations table

Is there a way to specify the ProductVersion when applying migrations?

like image 675
Cristian Szpisjak Avatar asked Sep 05 '25 03:09

Cristian Szpisjak


1 Answers

Don't change the value in that column--it's used internally by EF.

You can add a new column if you like by overriding the IHistoryRepository service. See Custom EF Core Migrations History Table to get started.

like image 148
bricelam Avatar answered Sep 07 '25 22:09

bricelam