using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Foxnouns.Backend.Database.Migrations { /// [DbContext(typeof(DatabaseContext))] [Migration("20241217195351_AddFediAppForceRefresh")] public partial class AddFediAppForceRefresh : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn>( name: "localization_params", table: "notifications", type: "hstore", nullable: false, oldClrType: typeof(Dictionary), oldType: "hstore", oldNullable: true ); migrationBuilder.AddColumn( name: "force_refresh", table: "fediverse_applications", type: "boolean", nullable: false, defaultValue: false ); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn(name: "force_refresh", table: "fediverse_applications"); migrationBuilder.AlterColumn>( name: "localization_params", table: "notifications", type: "hstore", nullable: true, oldClrType: typeof(Dictionary), oldType: "hstore" ); } } }