using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClaudeDo.Data.Migrations { /// public partial class AddMaxTurnsCeiling : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "default_max_turns", table: "app_settings", type: "INTEGER", nullable: false, defaultValue: 40, oldClrType: typeof(int), oldType: "INTEGER", oldDefaultValue: 30); migrationBuilder.AddColumn( name: "max_turns_ceiling", table: "app_settings", type: "INTEGER", nullable: false, defaultValue: 80); migrationBuilder.UpdateData( table: "app_settings", keyColumn: "id", keyValue: 1, columns: new[] { "default_max_turns", "max_turns_ceiling" }, values: new object[] { 40, 80 }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "max_turns_ceiling", table: "app_settings"); migrationBuilder.AlterColumn( name: "default_max_turns", table: "app_settings", type: "INTEGER", nullable: false, defaultValue: 30, oldClrType: typeof(int), oldType: "INTEGER", oldDefaultValue: 40); migrationBuilder.UpdateData( table: "app_settings", keyColumn: "id", keyValue: 1, column: "default_max_turns", value: 100); } } }