using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DiunaBI.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class RecordValues : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Value",
                table: "Records");

            migrationBuilder.AddColumn<float>(
                name: "Value1",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value10",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value11",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value12",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value13",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value14",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value15",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value16",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value17",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value18",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value19",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value2",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value20",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value21",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value22",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value23",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value24",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value25",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value26",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value27",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value28",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value29",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value3",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value30",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value31",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value4",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value5",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value6",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value7",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value8",
                table: "Records",
                type: "real",
                nullable: true);

            migrationBuilder.AddColumn<float>(
                name: "Value9",
                table: "Records",
                type: "real",
                nullable: true);
        }

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

            migrationBuilder.DropColumn(
                name: "Value10",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value11",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value12",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value13",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value14",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value15",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value16",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value17",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value18",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value19",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value2",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value20",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value21",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value22",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value23",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value24",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value25",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value26",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value27",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value28",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value29",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value3",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value30",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value31",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value4",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value5",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value6",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value7",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value8",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "Value9",
                table: "Records");

            migrationBuilder.AddColumn<float>(
                name: "Value",
                table: "Records",
                type: "real",
                nullable: false,
                defaultValue: 0f);
        }
    }
}
