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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Entity Framework interview questions

View all →