41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class emailMofify : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CriterionTypeEnum",
|
|
table: "EmailNoticeConfig");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CriterionTypeList",
|
|
table: "EmailNoticeConfig",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
comment: "邮件配置的多个标准");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CriterionTypeList",
|
|
table: "EmailNoticeConfig");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "CriterionTypeEnum",
|
|
table: "EmailNoticeConfig",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "标准枚举");
|
|
}
|
|
}
|
|
}
|