✨ Typing indicator, mark as read server-side
This commit is contained in:
3390
DysonNetwork.Sphere/Migrations/20250517211759_IndexedMessageStatus.Designer.cs
generated
Normal file
3390
DysonNetwork.Sphere/Migrations/20250517211759_IndexedMessageStatus.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class IndexedMessageStatus : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "ix_chat_statuses_message_id_sender_id",
|
||||
table: "chat_statuses",
|
||||
columns: new[] { "message_id", "sender_id" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "ix_chat_statuses_message_id_sender_id",
|
||||
table: "chat_statuses");
|
||||
}
|
||||
}
|
||||
}
|
@@ -1175,6 +1175,10 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
b.HasIndex("SenderId")
|
||||
.HasDatabaseName("ix_chat_statuses_sender_id");
|
||||
|
||||
b.HasIndex("MessageId", "SenderId")
|
||||
.IsUnique()
|
||||
.HasDatabaseName("ix_chat_statuses_message_id_sender_id");
|
||||
|
||||
b.ToTable("chat_statuses", (string)null);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user