using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace GerbilManagerWebAPI.Migrations { /// public partial class AddLitterShowInChronicle : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ShowInChronicle", table: "Litters", type: "boolean", nullable: false, // Bestehende Würfe bleiben in der Wurfchronik sichtbar; nur explizit als // „nicht in Chronik" importierte Würfe (z. B. Akanes extern entstandener Wurf) // werden beim Ingest auf false gesetzt. defaultValue: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ShowInChronicle", table: "Litters"); } } }