Add time index to connection log (#29281)
* Add time index to connection log Queries go nyoom. * Don't let me code shit at 5 AM
This commit is contained in:
committed by
GitHub
parent
730a4d289d
commit
f041f58a6d
@@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Content.Server.Database.Migrations.Postgres
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ConnectionLogTimeIndex : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_connection_log_time",
|
||||
table: "connection_log",
|
||||
column: "time");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_connection_log_time",
|
||||
table: "connection_log");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user