seniorEntity Framework
How do you customize Migration history table and schema?
Updated Apr 28, 2026
Short answer
You can customize the __EFMigrationsHistory table's name, schema, and column types via the DbContext configuration options.
Deep explanation
In enterprise multi-tenant architectures or databases with strict DBA guidelines, you might need to isolate migration histories. You achieve this in Startup when configuring the database provider, by modifying the MigrationsHistoryTable method.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro