Iceshrimp.NET/Iceshrimp.Backend/Core/Database/Migrations/20240326191000_AddNotificationMastoIdIndex.cs

30 lines
918 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Infrastructure;
#nullable disable
namespace Iceshrimp.Backend.Core.Database.Migrations
{
/// <inheritdoc />
[DbContext(typeof(DatabaseContext))]
[Migration("20240326191000_AddNotificationMastoIdIndex")]
public partial class AddNotificationMastoIdIndex : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_notification_masto_id",
table: "notification",
column: "masto_id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_notification_masto_id",
table: "notification");
}
}
}