using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AsbCloudDb.Migrations
{
    public partial class Update_DetectedOperations_And_Subsystems : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "enabled_subsystems",
                table: "t_detected_operation",
                type: "integer",
                nullable: false,
                comment: "флаги включенных подсистем",
                oldClrType: typeof(int),
                oldType: "integer",
                oldComment: "флаги аключенных подсистем");

            migrationBuilder.UpdateData(
                table: "t_subsystem",
                keyColumn: "id",
                keyValue: 1,
                column: "name",
                value: "АПД");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "enabled_subsystems",
                table: "t_detected_operation",
                type: "integer",
                nullable: false,
                comment: "флаги аключенных подсистем",
                oldClrType: typeof(int),
                oldType: "integer",
                oldComment: "флаги включенных подсистем");

            migrationBuilder.UpdateData(
                table: "t_subsystem",
                keyColumn: "id",
                keyValue: 1,
                column: "name",
                value: "АКБ");
        }
    }
}