Files
IM_NEW/MessageService.Infrastructure/Migrations/20260909000100_ApiAlignmentFixes.cs
T

26 lines
900 B
C#

using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
namespace MessageService.Infrastructure.Migrations
{
[DbContext(typeof(MessageDbContext))]
[Migration("20260909000100_ApiAlignmentFixes")]
public partial class ApiAlignmentFixes : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_conversations_UserId_ChatType_TargetId_IsDeleted",
table: "conversations",
columns: new[] { "UserId", "ChatType", "TargetId", "IsDeleted" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_conversations_UserId_ChatType_TargetId_IsDeleted",
table: "conversations");
}
}
}