Merge branch 'robot-task-details-2' into dev
This commit is contained in:
4135
PARR.DAL/Migrations/20260728234721_tblRobotConfigurationsAddIndexes.Designer.cs
generated
Normal file
4135
PARR.DAL/Migrations/20260728234721_tblRobotConfigurationsAddIndexes.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
4137
PARR.DAL/Migrations/20260729041405_tblTemplateRenamePendingAddDateModifiedRemUniqueIndex.Designer.cs
generated
Normal file
4137
PARR.DAL/Migrations/20260729041405_tblTemplateRenamePendingAddDateModifiedRemUniqueIndex.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblTemplateRenamePendingAddDateModifiedRemUniqueIndex : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TemplateRenamePendings_OldName",
|
||||
schema: "template",
|
||||
table: "TemplateRenamePendings");
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "DateModified",
|
||||
schema: "template",
|
||||
table: "TemplateRenamePendings",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TemplateRenamePendings_OldName",
|
||||
schema: "template",
|
||||
table: "TemplateRenamePendings",
|
||||
column: "OldName");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TemplateRenamePendings_OldName",
|
||||
schema: "template",
|
||||
table: "TemplateRenamePendings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DateModified",
|
||||
schema: "template",
|
||||
table: "TemplateRenamePendings");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TemplateRenamePendings_OldName",
|
||||
schema: "template",
|
||||
table: "TemplateRenamePendings",
|
||||
column: "OldName",
|
||||
unique: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -950,12 +950,14 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("RobotCode");
|
||||
|
||||
b.HasIndex("RobotStatusCode");
|
||||
|
||||
b.HasIndex("TaskStatusCode");
|
||||
|
||||
b.HasIndex("RobotCode", "RobotStatusCode");
|
||||
|
||||
b.HasIndex("RobotCode", "TaskStatusCode");
|
||||
|
||||
b.HasIndex("TemplateId", "RobotCode")
|
||||
.IsUnique();
|
||||
|
||||
@@ -2858,6 +2860,9 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<DateTimeOffset>("DateCreated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTimeOffset?>("DateModified")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("OldName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
@@ -2865,8 +2870,7 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasKey("TemplateId");
|
||||
|
||||
b.HasIndex("OldName")
|
||||
.IsUnique();
|
||||
b.HasIndex("OldName");
|
||||
|
||||
b.ToTable("TemplateRenamePendings", "template", t =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user