mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-17 18:48:02 -05:00
add index to last connection for improved search speed
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Data.Migrations.Sqlite
|
||||
{
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user