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?