✨ Typing indicator, mark as read server-side
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user