1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

small migration fix for MySql

This commit is contained in:
RaidMax
2019-02-22 19:35:03 -06:00
parent 88c013be20
commit 9685a1af5c
3 changed files with 15 additions and 4 deletions

View File

@ -6,10 +6,18 @@ namespace SharedLibraryCore.Migrations
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_EFMeta_Key",
table: "EFMeta",
column: "Key");
if (migrationBuilder.ActiveProvider == "Pomelo.EntityFrameworkCore.MySql")
{
migrationBuilder.Sql("CREATE FULLTEXT INDEX IX_EFMeta_Key ON EFMeta ( `Key` );");
}
else
{
migrationBuilder.CreateIndex(
name: "IX_EFMeta_Key",
table: "EFMeta",
column: "Key");
}
}
protected override void Down(MigrationBuilder migrationBuilder)