937fec1c4b
AlterColumn SystemArtifactDeploymentRecords.PerSiteStatus nvarchar(4000) -> nvarchar(max), plus docs/plans/sql/WidenSystemArtifactPerSiteStatus.sql for manual production application (not yet applied to QA/DEV). Kept in its own commit so the integrator can regenerate it on merge.
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class WidenSystemArtifactPerSiteStatus : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PerSiteStatus",
|
|
table: "SystemArtifactDeploymentRecords",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(4000)",
|
|
oldMaxLength: 4000,
|
|
oldNullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "PerSiteStatus",
|
|
table: "SystemArtifactDeploymentRecords",
|
|
type: "nvarchar(4000)",
|
|
maxLength: 4000,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|