devin.zhu@doverfs.com 6d8f446b50 初始 1 year ago
..
Configuration 6d8f446b50 初始 1 year ago
Database 6d8f446b50 初始 1 year ago
IndustryStandardInterface 6d8f446b50 初始 1 year ago
Licensing 6d8f446b50 初始 1 year ago
Migrations 6d8f446b50 初始 1 year ago
Parser 6d8f446b50 初始 1 year ago
Processor 6d8f446b50 初始 1 year ago
UniversalApi 6d8f446b50 初始 1 year ago
Edge.Core.csproj 6d8f446b50 初始 1 year ago
ExtentionMethod.cs 6d8f446b50 初始 1 year ago
readMe_for_database.txt 6d8f446b50 初始 1 year ago

readMe_for_database.txt

=====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.