DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20230906090612_Add_separated_subsystems.cs

35 lines
1.1 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Add_separated_subsystems : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "t_subsystem",
columns: new[] { "id", "description", "name" },
values: new object[,]
{
{ 11, "Режим работы \"Бурение в роторе\"", "АПД ротор" },
{ 12, "Режим работы \"Бурение в слайде\"", "АПД слайд" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "t_subsystem",
keyColumn: "id",
keyValue: 11);
migrationBuilder.DeleteData(
table: "t_subsystem",
keyColumn: "id",
keyValue: 12);
}
}
}