irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20241017065221_EmailModify.cs

41 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class EmailModify : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "EmailDelaySeconds",
table: "TrialEmailNoticeConfig",
type: "int",
nullable: true,
comment: "邮件延时秒数比如一个事件触发延迟多少s后才发邮件");
migrationBuilder.AddColumn<int>(
name: "EmailDelaySeconds",
table: "EmailNoticeConfig",
type: "int",
nullable: true,
comment: "邮件延时秒数比如一个事件触发延迟多少s后才发邮件");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EmailDelaySeconds",
table: "TrialEmailNoticeConfig");
migrationBuilder.DropColumn(
name: "EmailDelaySeconds",
table: "EmailNoticeConfig");
}
}
}