using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class ChangeLimitPeriodToAbsoluteRange : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PeriodHours", table: "ProductLimitConfig"); migrationBuilder.AddColumn( name: "PeriodEndAt", table: "ProductLimitConfig", type: "datetime2", nullable: true, comment: "Custom 시 절대 윈도우 종료 시각 (UTC)"); migrationBuilder.AddColumn( name: "PeriodStartAt", table: "ProductLimitConfig", type: "datetime2", nullable: true, comment: "Custom 시 절대 윈도우 시작 시각 (UTC)"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PeriodEndAt", table: "ProductLimitConfig"); migrationBuilder.DropColumn( name: "PeriodStartAt", table: "ProductLimitConfig"); migrationBuilder.AddColumn( name: "PeriodHours", table: "ProductLimitConfig", type: "int", nullable: false, defaultValue: 0, comment: "Custom 시 누적 윈도우 (시간 단위)"); } } }