9e60347bde
Claude-Session: https://claude.ai/code/session_01MtdgwpEeCUn6cUA5f1LMPj
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSmtpOAuth2AuthorityScope : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OAuth2Authority",
|
|
table: "SmtpConfigurations",
|
|
type: "nvarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OAuth2Scope",
|
|
table: "SmtpConfigurations",
|
|
type: "nvarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "OAuth2Authority",
|
|
table: "SmtpConfigurations");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OAuth2Scope",
|
|
table: "SmtpConfigurations");
|
|
}
|
|
}
|
|
}
|