feat(dal,api): добавлен индекс в таблицу UnitInValues. В api изменены респонсы Template и Unit.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tbkUnitInValueAddIndexes : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_UnitInValues_FieldId",
|
||||
schema: "unit",
|
||||
table: "UnitInValues");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UnitInValues_FieldId_ValueId",
|
||||
schema: "unit",
|
||||
table: "UnitInValues",
|
||||
columns: new[] { "FieldId", "ValueId" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_UnitInValues_FieldId_ValueId",
|
||||
schema: "unit",
|
||||
table: "UnitInValues");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UnitInValues_FieldId",
|
||||
schema: "unit",
|
||||
table: "UnitInValues",
|
||||
column: "FieldId");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user