using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SolutionErp.Infrastructure.Persistence.Migrations
{
    /// <inheritdoc />
    public partial class AddManualBudgetFieldsToPeAndContract : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<decimal>(
                name: "BudgetManualAmount",
                table: "PurchaseEvaluations",
                type: "decimal(18,2)",
                precision: 18,
                scale: 2,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "BudgetManualName",
                table: "PurchaseEvaluations",
                type: "nvarchar(200)",
                maxLength: 200,
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "BudgetManualAmount",
                table: "Contracts",
                type: "decimal(18,2)",
                precision: 18,
                scale: 2,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "BudgetManualName",
                table: "Contracts",
                type: "nvarchar(200)",
                maxLength: 200,
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BudgetManualAmount",
                table: "PurchaseEvaluations");

            migrationBuilder.DropColumn(
                name: "BudgetManualName",
                table: "PurchaseEvaluations");

            migrationBuilder.DropColumn(
                name: "BudgetManualAmount",
                table: "Contracts");

            migrationBuilder.DropColumn(
                name: "BudgetManualName",
                table: "Contracts");
        }
    }
}
