37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class tblTemplatesAndRobotConfigurationsAddINdexes : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_RobotConfigurations_TemplateId_RobotStatusCode",
|
|
table: "RobotConfigurations",
|
|
columns: new[] { "TemplateId", "RobotStatusCode" });
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_RobotConfigurations_TemplateId_TaskStatusCode",
|
|
table: "RobotConfigurations",
|
|
columns: new[] { "TemplateId", "TaskStatusCode" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_RobotConfigurations_TemplateId_RobotStatusCode",
|
|
table: "RobotConfigurations");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_RobotConfigurations_TemplateId_TaskStatusCode",
|
|
table: "RobotConfigurations");
|
|
}
|
|
}
|
|
}
|