The following SQL is used to create __MigrationHistory table in SQLite database for Entity Framework 6.0 in Code-First mode.
1 2 3 4 5 6 | CREATE TABLE [__MigrationHistory] ( [MigrationId] CHAR NOT NULL, [Model] BLOB NOT NULL, [ContextKey] CHAR NOT NULL, [ProductVersion] CHAR NOT NULL, CONSTRAINT [sqlite_autoindex___MigrationHistory_1] PRIMARY KEY ([MigrationId])); |