29 lines
898 B
C#
29 lines
898 B
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace PARR.DAL.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class TblRobotHistoryLevelRmBreake : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DeleteData(
|
|||
|
|
table: "RobotHistoryLevels",
|
|||
|
|
keyColumn: "Level",
|
|||
|
|
keyValue: 20);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.InsertData(
|
|||
|
|
table: "RobotHistoryLevels",
|
|||
|
|
columns: new[] { "Level", "Description", "Name" },
|
|||
|
|
values: new object[] { 20, "Завершил работу с ошибкой (не отработал до конца)", "Breake" });
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|