using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Iceshrimp.Backend.Core.Database.Migrations
{
///
public partial class AllowMultipleReactions : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_note_reaction_userId_noteId",
table: "note_reaction");
migrationBuilder.CreateIndex(
name: "IX_note_reaction_userId_noteId_reaction",
table: "note_reaction",
columns: new[] { "userId", "noteId", "reaction" },
unique: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_note_reaction_userId_noteId_reaction",
table: "note_reaction");
migrationBuilder.CreateIndex(
name: "IX_note_reaction_userId_noteId",
table: "note_reaction",
columns: new[] { "userId", "noteId" },
unique: true);
}
}
}