C
C#ā€¢17mo ago
heloo

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

11 Replies
Pobiega
Pobiegaā€¢17mo ago
running the initial migration should create that table
N4nn3rz
N4nn3rzā€¢17mo ago
I am having this exact issue!! add-migration works but then update-database always fails with error 14
heloo
helooOPā€¢17mo ago
it doesnt migration will run but the update wont
Pobiega
Pobiegaā€¢17mo 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ā€¢17mo ago
where would i create in manually ?
Pobiega
Pobiegaā€¢17mo 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ā€¢17mo ago
it wont even create the db yes it wont create the db file as well
Pobiega
Pobiegaā€¢17mo ago
can you jump on screenshare and show me? this sounds wack
heloo
helooOPā€¢17mo ago
gladly thank you for the help
Pobiega
Pobiegaā€¢17mo ago
#dev-vc-1
Accord
Accordā€¢17mo 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.
Want results from more Discord servers?
Add your server