30 lines
922 B
C#
30 lines
922 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSiteCallsNonTerminalIndex : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SiteCalls_NonTerminal",
|
|
table: "SiteCalls",
|
|
column: "CreatedAtUtc",
|
|
filter: "[TerminalAtUtc] IS NULL")
|
|
.Annotation("SqlServer:Include", new[] { "SourceSite", "SourceNode", "Status" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SiteCalls_NonTerminal",
|
|
table: "SiteCalls");
|
|
}
|
|
}
|
|
}
|