forked from ddrilling/AsbCloudServer
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
namespace AsbCloudDb.Migrations
|
|||
|
{
|
|||
|
public partial class AddDefaultData : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "t_well_operation_category",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 1019);
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "t_well_operation_category",
|
|||
|
columns: new[] { "id", "code", "name" },
|
|||
|
values: new object[] { 1050, 0, "Промывка при спуске ОК" });
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "t_well_operation_category",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 1050);
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "t_well_operation_category",
|
|||
|
columns: new[] { "id", "code", "name" },
|
|||
|
values: new object[] { 1019, 0, "Перетяжка тальканата" });
|
|||
|
}
|
|||
|
}
|
|||
|
}
|