using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClaudeDo.Data.Migrations { /// public partial class AddPowerUse : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "power_use_allowed", table: "list_config", type: "INTEGER", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "list_handler_max_handoffs", table: "app_settings", type: "INTEGER", nullable: false, defaultValue: 4); migrationBuilder.AddColumn( name: "power_use_enabled", table: "app_settings", type: "INTEGER", nullable: false, defaultValue: false); migrationBuilder.UpdateData( table: "app_settings", keyColumn: "id", keyValue: 1, column: "list_handler_max_handoffs", value: 4); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "power_use_allowed", table: "list_config"); migrationBuilder.DropColumn( name: "list_handler_max_handoffs", table: "app_settings"); migrationBuilder.DropColumn( name: "power_use_enabled", table: "app_settings"); } } }