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:
@ -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)
|
||||
|
Reference in New Issue
Block a user