Mysql
 SQL >> Base de Dados >  >> RDS >> Mysql

EF Core: tabela __EFMigrationsHistory não existe

Se o EF Core reclamar que __EFMigrationsHistory não existe, crie a tabela manualmente ou gere o script da migração.

CREATE TABLE `__EFMigrationsHistory` (`MigrationId` nvarchar(150) NOT NULL, `ProductVersion` nvarchar(32) NOT NULL, PRIMARY KEY (`MigrationId`));

Também é possível usar Script-Migration no Package Manager Console.