C
C#ā€¢2y ago
heloo

EF Error SQLite Error 1: 'no such table: __EFMigrationsHistory'. when i run dotnet ef databas update

11 Replies
Pobiega
Pobiegaā€¢2y ago
running the initial migration should create that table
N4nn3rz
N4nn3rzā€¢2y ago
I am having this exact issue!! add-migration works but then update-database always fails with error 14
heloo
helooOPā€¢2y ago
it doesnt migration will run but the update wont
Pobiega
Pobiegaā€¢2y ago
curious I get one in mine when I generate and run my initial migration however, its a very simple table to create manually its called __EFMigrationsHistory with two underscores, it has two columns: MigrationId and ProductVersion, both TEXT (in SQLite)
heloo
helooOPā€¢2y ago
where would i create in manually ?
Pobiega
Pobiegaā€¢2y ago
in the database? But you are letting EFCore do everything, right? Including creating the sqlite file itself? Just dont understand why it wouldnt create the history table O_o
heloo
helooOPā€¢2y ago
it wont even create the db yes it wont create the db file as well
Pobiega
Pobiegaā€¢2y ago
can you jump on screenshare and show me? this sounds wack
heloo
helooOPā€¢2y ago
gladly thank you for the help
Pobiega
Pobiegaā€¢2y ago
#dev-vc-1
Accord
Accordā€¢2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?