using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ClaudeDo.Data.Migrations
{
///
public partial class AddUsageThrottleThresholds : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "usage_throttle_hard_pct",
table: "app_settings",
type: "INTEGER",
nullable: false,
defaultValue: 65);
migrationBuilder.AddColumn(
name: "usage_throttle_soft_pct",
table: "app_settings",
type: "INTEGER",
nullable: false,
defaultValue: 50);
migrationBuilder.UpdateData(
table: "app_settings",
keyColumn: "id",
keyValue: 1,
columns: new[] { "usage_throttle_hard_pct", "usage_throttle_soft_pct" },
values: new object[] { 65, 50 });
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "usage_throttle_hard_pct",
table: "app_settings");
migrationBuilder.DropColumn(
name: "usage_throttle_soft_pct",
table: "app_settings");
}
}
}