Skip to content

Commit

Permalink
Fixes #76 exception mgs column too small
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenRedd committed Jul 11, 2017
1 parent 0dab204 commit 9a62234
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 42 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

using Microsoft.EntityFrameworkCore.Migrations;
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace NullDesk.Extensions.Mailer.History.EntityFramework.SqlServer.Migrations
{

public partial class ResizeExceptionMessage : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ExceptionMessage",
table: "MessageHistory",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 500,
oldNullable: true);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ExceptionMessage",
table: "MessageHistory",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldNullable: true);
}
}
}
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
using Microsoft.EntityFrameworkCore.Migrations;
using NullDesk.Extensions.Mailer.History.EntityFramework.SqlServer;

namespace NullDesk.Extensions.Mailer.History.EntityFramework.SqlServer.Migrations
{
[DbContext(typeof(SqlHistoryContext))]
internal class SqlHistoryContextModelSnapshot : ModelSnapshot
partial class SqlHistoryContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
Expand All @@ -17,64 +17,61 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

modelBuilder.Entity("NullDesk.Extensions.Mailer.History.EntityFramework.EntityHistoryDeliveryItem", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();

b.Property<string>("AttachmentsJson");
b.Property<string>("AttachmentsJson");

b.Property<DateTimeOffset>("CreatedDate");
b.Property<DateTimeOffset>("CreatedDate");

b.Property<string>("DeliveryProvider")
.HasMaxLength(100);
b.Property<string>("DeliveryProvider")
.HasMaxLength(100);

b.Property<string>("ExceptionMessage")
.HasMaxLength(500);
b.Property<string>("ExceptionMessage");

b.Property<string>("FromDisplayName")
.HasMaxLength(200);
b.Property<string>("FromDisplayName")
.HasMaxLength(200);

b.Property<string>("FromEmailAddress")
.HasMaxLength(200);
b.Property<string>("FromEmailAddress")
.HasMaxLength(200);

b.Property<string>("HtmlContent");
b.Property<string>("HtmlContent");

b.Property<bool>("IsSuccess");
b.Property<bool>("IsSuccess");

b.Property<string>("ProviderMessageId")
.HasMaxLength(200);
b.Property<string>("ProviderMessageId")
.HasMaxLength(200);

b.Property<string>("ReplyToDisplayName")
.HasMaxLength(200);
b.Property<string>("ReplyToDisplayName")
.HasMaxLength(200);

b.Property<string>("ReplyToEmailAddress")
.HasMaxLength(200);
b.Property<string>("ReplyToEmailAddress")
.HasMaxLength(200);

b.Property<string>("SourceApplicationName")
.HasMaxLength(100);
b.Property<string>("SourceApplicationName")
.HasMaxLength(100);

b.Property<string>("Subject")
.HasMaxLength(200);
b.Property<string>("Subject")
.HasMaxLength(200);

b.Property<string>("SubstitutionsJson");
b.Property<string>("SubstitutionsJson");

b.Property<string>("TemplateName")
.HasMaxLength(255);
b.Property<string>("TemplateName")
.HasMaxLength(255);

b.Property<string>("TextContent");
b.Property<string>("TextContent");

b.Property<string>("ToDisplayName")
.HasMaxLength(200);
b.Property<string>("ToDisplayName")
.HasMaxLength(200);

b.Property<string>("ToEmailAddress")
.HasMaxLength(200);
b.Property<string>("ToEmailAddress")
.HasMaxLength(200);

b.HasKey("Id");
b.HasKey("Id");

b.ToTable("MessageHistory");
});
b.ToTable("MessageHistory");
});
}
}
}

#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public class EntityHistoryDeliveryItem
/// Gets or sets the exception message if an exception occurred.
/// </summary>
/// <value>The exception message.</value>
[StringLength(500)]
public string ExceptionMessage { get; set; }

/// <summary>
Expand Down

0 comments on commit 9a62234

Please sign in to comment.