[backend/database] Add warning to AddNoteThread migration that it may take a while

This commit is contained in:
Kopper 2024-10-25 07:13:03 +03:00
parent 5a63787c39
commit 61bad29c54

View file

@ -14,6 +14,9 @@ namespace Iceshrimp.Backend.Core.Database.Migrations
/// <inheritdoc /> /// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)
{ {
Console.WriteLine("Recomputing note thread identifiers, please hang tight!");
Console.WriteLine("This may take a long time (15-30 minutes), especially if your database is unusually large or you're running low end hardware.");
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "note_thread", name: "note_thread",
columns: table => new columns: table => new