using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Iceshrimp.Backend.Core.Database.Migrations { /// public partial class AddNoteCwIndex : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { Console.WriteLine("Indexing note content warnings, 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.CreateIndex( name: "GIN_TRGM_note_cw", table: "note", column: "cw") .Annotation("Npgsql:IndexMethod", "gin") .Annotation("Npgsql:IndexOperators", new[] { "gin_trgm_ops" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "GIN_TRGM_note_cw", table: "note"); } } }