using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AsbCloudDb.Migrations
{
    /// <inheritdoc />
    public partial class Update_Tables_ProcessMapOperationsAndFunctions2 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_shock_test",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_stop_point_off_bottom",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming3_repetitions_count",
                table: "t_process_map_plan_reaming_slide",
                type: "integer",
                nullable: true,
                comment: "Проработка 3, Количество повторений, шт.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_interval",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_stop_point_off_bottom",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming2_repetitions_count",
                table: "t_process_map_plan_reaming_slide",
                type: "integer",
                nullable: true,
                comment: "Проработка 2, Количество повторений, шт.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_interval",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming1_repetitions_count",
                table: "t_process_map_plan_reaming_slide",
                type: "integer",
                nullable: false,
                comment: "Проработка 1. Количество повторений, шт.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 1. Количество повторений, шт.");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_reaming_slide",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_oscillation",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_stop_point_off_bottom",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming3_repetitions_count",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "integer",
                nullable: true,
                comment: "Проработка 3, Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldComment: "Проработка 3, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_interval",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 3, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 3, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_stop_point_off_bottom",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming2_repetitions_count",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "integer",
                nullable: true,
                comment: "Проработка 2, Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldComment: "Проработка 2, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_interval",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: true,
                comment: "Проработка 2, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldComment: "Проработка 2, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_functions_damper",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_drilltest",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_auto_hold_tf",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: true,
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldComment: "Примечание");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_shock_test",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_stop_point_off_bottom",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_repetitions_count",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldNullable: true,
                oldComment: "Проработка 3, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_interval",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_stop_point_off_bottom",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_repetitions_count",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldNullable: true,
                oldComment: "Проработка 2, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_interval",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_up",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_down",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming1_repetitions_count",
                table: "t_process_map_plan_reaming_slide",
                type: "double precision",
                nullable: false,
                comment: "Проработка 1. Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldComment: "Проработка 1. Количество повторений, шт.");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_reaming_slide",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_oscillation",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_stop_point_off_bottom",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rpm_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_rop_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming3_repetitions_count",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "integer",
                nullable: false,
                defaultValue: 0,
                comment: "Проработка 3, Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldNullable: true,
                oldComment: "Проработка 3, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_interval",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming3_flow_rate_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 3, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 3, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_stop_point_off_bottom",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Остановка над забоем, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Остановка над забоем, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Обороты, об/мин., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Обороты, об/мин., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rpm_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Обороты, об/мин., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Обороты, об/мин., Вниз");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Скорость, м/ч., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Скорость, м/ч., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_rop_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Скорость, м/ч., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Скорость, м/ч., Вниз");

            migrationBuilder.AlterColumn<int>(
                name: "reaming2_repetitions_count",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "integer",
                nullable: false,
                defaultValue: 0,
                comment: "Проработка 2, Количество повторений, шт.",
                oldClrType: typeof(int),
                oldType: "integer",
                oldNullable: true,
                oldComment: "Проработка 2, Количество повторений, шт.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_interval",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Интервал проработки, м.",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Интервал проработки, м.");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_up",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Расход, л/с., Вверх",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Расход, л/с., Вверх");

            migrationBuilder.AlterColumn<double>(
                name: "reaming2_flow_rate_down",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "double precision",
                nullable: false,
                defaultValue: 0.0,
                comment: "Проработка 2, Расход, л/с., Вниз",
                oldClrType: typeof(double),
                oldType: "double precision",
                oldNullable: true,
                oldComment: "Проработка 2, Расход, л/с., Вниз");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_operation_reaming_rotor",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_functions_damper",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_drilltest",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");

            migrationBuilder.AlterColumn<string>(
                name: "note",
                table: "t_process_map_plan_auto_hold_tf",
                type: "character varying(1024)",
                maxLength: 1024,
                nullable: false,
                defaultValue: "",
                comment: "Примечание",
                oldClrType: typeof(string),
                oldType: "character varying(1024)",
                oldMaxLength: 1024,
                oldNullable: true,
                oldComment: "Примечание");
        }
    }
}