40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
|||
|
|
|
|||
|
|
namespace PARR.DAL.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class tblResponseAreaAddVP_OSK : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.InsertData(
|
|||
|
|
table: "ResponseAreas",
|
|||
|
|
columns: new[] { "Code", "Name" },
|
|||
|
|
values: new object[,]
|
|||
|
|
{
|
|||
|
|
{ 110, "ВП" },
|
|||
|
|
{ 111, "ОСК" }
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DeleteData(
|
|||
|
|
table: "ResponseAreas",
|
|||
|
|
keyColumn: "Code",
|
|||
|
|
keyValue: 110);
|
|||
|
|
|
|||
|
|
migrationBuilder.DeleteData(
|
|||
|
|
table: "ResponseAreas",
|
|||
|
|
keyColumn: "Code",
|
|||
|
|
keyValue: 111);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|