forked from ddrilling/AsbCloudServer
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class Add_Well_operation_StaticSurveying : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.UpdateData(
|
|
table: "t_well_operation_category",
|
|
keyColumn: "id",
|
|
keyValue: 20,
|
|
column: "name",
|
|
value: "Промывка перед наращиванием");
|
|
|
|
migrationBuilder.InsertData(
|
|
table: "t_well_operation_category",
|
|
columns: new[] { "id", "code", "name" },
|
|
values: new object[] { 21, 0, "Статический замер телесистемы" });
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "t_well_operation_category",
|
|
keyColumn: "id",
|
|
keyValue: 21);
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "t_well_operation_category",
|
|
keyColumn: "id",
|
|
keyValue: 20,
|
|
column: "name",
|
|
value: "Шаблонировка перед наращиванием");
|
|
}
|
|
}
|
|
}
|