mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
add index to last connection for improved search speed
This commit is contained in:
1641
Data/Migrations/MySql/20230124030137_AddLastConnectionIndexEFClient.Designer.cs
generated
Normal file
1641
Data/Migrations/MySql/20230124030137_AddLastConnectionIndexEFClient.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Data.Migrations.MySql
|
||||
{
|
||||
public partial class AddLastConnectionIndexEFClient : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_EFClients_LastConnection",
|
||||
table: "EFClients",
|
||||
column: "LastConnection");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_EFClients_LastConnection",
|
||||
table: "EFClients");
|
||||
}
|
||||
}
|
||||
}
|
@ -96,6 +96,8 @@ namespace Data.Migrations.MySql
|
||||
|
||||
b.HasIndex("CurrentAliasId");
|
||||
|
||||
b.HasIndex("LastConnection");
|
||||
|
||||
b.HasIndex("NetworkId");
|
||||
|
||||
b.ToTable("EFClients", (string)null);
|
||||
|
Reference in New Issue
Block a user