55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
||
#nullable disable
|
||
|
||
namespace PARR.DAL.Migrations
|
||
{
|
||
/// <inheritdoc />
|
||
public partial class addUnitInValuesIndexes : Migration
|
||
{
|
||
/// <inheritdoc />
|
||
protected override void Up(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.UpdateData(
|
||
table: "Settings",
|
||
keyColumn: "Name",
|
||
keyValue: "Initiator",
|
||
column: "Value",
|
||
value: "ОВЧАРЕНКО АЛЕКСЕЙ ВИТАЛЬЕВИЧ (OVCHARENKOAV@GVC.OAO.RZD)");
|
||
|
||
migrationBuilder.CreateIndex(
|
||
name: "IX_UnitInValues_FieldId_UnitId",
|
||
schema: "unit",
|
||
table: "UnitInValues",
|
||
columns: new[] { "FieldId", "UnitId" });
|
||
|
||
migrationBuilder.CreateIndex(
|
||
name: "IX_UnitInValues_UnitId_FieldId",
|
||
schema: "unit",
|
||
table: "UnitInValues",
|
||
columns: new[] { "UnitId", "FieldId" });
|
||
}
|
||
|
||
/// <inheritdoc />
|
||
protected override void Down(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.DropIndex(
|
||
name: "IX_UnitInValues_FieldId_UnitId",
|
||
schema: "unit",
|
||
table: "UnitInValues");
|
||
|
||
migrationBuilder.DropIndex(
|
||
name: "IX_UnitInValues_UnitId_FieldId",
|
||
schema: "unit",
|
||
table: "UnitInValues");
|
||
|
||
migrationBuilder.UpdateData(
|
||
table: "Settings",
|
||
keyColumn: "Name",
|
||
keyValue: "Initiator",
|
||
column: "Value",
|
||
value: "АКСЕНОВ АЛЕКСАНДР ЕВГЕНЬЕВИЧ (AKSENOVAE@GVC.OAO.RZD)");
|
||
}
|
||
}
|
||
}
|