=====how to manually fix an untracked db on track by EF-CORE===== 1. Firstly, Copy the original database file for backup!!! 2. Open db by SQLite DB browser. 3. Check the table: __EFMigrationsHistory MUST NOT exists, if exists, stop and contact administrator? 4. Create a table by sql command: CREATE TABLE "__EFMigrationsHistory" ( "MigrationId" TEXT NOT NULL CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY, "ProductVersion" TEXT NOT NULL ) 4. Insert a(or some, if you understand what u a doing) fake migration record by sql command: Insert into __EFMigrationsHistory values('20180626102740_InitialCreate', '3.1.1') 5. Write changes and exit database editing in SQLite DB browser.