46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class tblRobotConfigurationsAddIndexes : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_RobotConfigurations_RobotCode",
|
|
table: "RobotConfigurations");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_RobotConfigurations_RobotCode_RobotStatusCode",
|
|
table: "RobotConfigurations",
|
|
columns: new[] { "RobotCode", "RobotStatusCode" });
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_RobotConfigurations_RobotCode_TaskStatusCode",
|
|
table: "RobotConfigurations",
|
|
columns: new[] { "RobotCode", "TaskStatusCode" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_RobotConfigurations_RobotCode_RobotStatusCode",
|
|
table: "RobotConfigurations");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_RobotConfigurations_RobotCode_TaskStatusCode",
|
|
table: "RobotConfigurations");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_RobotConfigurations_RobotCode",
|
|
table: "RobotConfigurations",
|
|
column: "RobotCode");
|
|
}
|
|
}
|
|
}
|