Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Table doesn't exist when deployed on AWS

I deployed my .net core app to aws, but cannot figure out how to make initial migration to create tables. Is there some equivalent to dotnet ef migrations add Initial dotnet ef database update on aws to create tables when use Code First approach? My code failing on line:

if (context.Record.Any())
            {
                return;   // DB has been seeded
            }
like image 624
Roman Avatar asked Dec 20 '25 17:12

Roman


1 Answers

Issue solved by changing MySQL connector from MySql.Data.EntityFrameworkCore to SapientGuardian.EntityFrameworkCore.MySql. All migrations then performed using default commands.

like image 191
Roman Avatar answered Dec 23 '25 08:12

Roman