diff --git a/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170629074320_InitCreate.Designer.cs b/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170708050416_InitDB.Designer.cs similarity index 94% rename from test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170629074320_InitCreate.Designer.cs rename to test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170708050416_InitDB.Designer.cs index 2079849..a018f8f 100644 --- a/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170629074320_InitCreate.Designer.cs +++ b/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170708050416_InitDB.Designer.cs @@ -8,8 +8,8 @@ using DotNetCore.CAP.EntityFrameworkCore.Test; namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations { [DbContext(typeof(TestDbContext))] - [Migration("20170629074320_InitCreate")] - partial class InitCreate + [Migration("20170708050416_InitDB")] + partial class InitDB { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -26,6 +26,8 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations b.Property("Content"); + b.Property("Group"); + b.Property("KeyName"); b.Property("LastRun"); diff --git a/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170629074320_InitCreate.cs b/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170708050416_InitDB.cs similarity index 81% rename from test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170629074320_InitCreate.cs rename to test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170708050416_InitDB.cs index 6bf60ea..af02548 100644 --- a/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170629074320_InitCreate.cs +++ b/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170708050416_InitDB.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore.Migrations; namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations { - public partial class InitCreate : Migration + public partial class InitDB : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -15,12 +15,16 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations Id = table.Column(nullable: false), Added = table.Column(nullable: false), Content = table.Column(nullable: true), + Group = table.Column(nullable: true), KeyName = table.Column(nullable: true), LastRun = table.Column(nullable: false), Retries = table.Column(nullable: false), StatusName = table.Column(maxLength: 50, nullable: true) }, - constraints: table => { table.PrimaryKey("PK_CapReceivedMessages", x => x.Id); }); + constraints: table => + { + table.PrimaryKey("PK_CapReceivedMessages", x => x.Id); + }); migrationBuilder.CreateTable( name: "CapSentMessages", @@ -34,7 +38,10 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations Retries = table.Column(nullable: false), StatusName = table.Column(maxLength: 50, nullable: true) }, - constraints: table => { table.PrimaryKey("PK_CapSentMessages", x => x.Id); }); + constraints: table => + { + table.PrimaryKey("PK_CapSentMessages", x => x.Id); + }); } protected override void Down(MigrationBuilder migrationBuilder) @@ -46,4 +53,4 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations name: "CapSentMessages"); } } -} \ No newline at end of file +} diff --git a/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/TestDbContextModelSnapshot.cs b/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/TestDbContextModelSnapshot.cs index 85ba713..a4e6e0a 100644 --- a/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/TestDbContextModelSnapshot.cs +++ b/test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/TestDbContextModelSnapshot.cs @@ -17,50 +17,52 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("DotNetCore.CAP.Infrastructure.CapReceivedMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("Added"); + b.Property("Added"); - b.Property("Content"); + b.Property("Content"); - b.Property("KeyName"); + b.Property("Group"); - b.Property("LastRun"); + b.Property("KeyName"); - b.Property("Retries"); + b.Property("LastRun"); - b.Property("StatusName") - .HasMaxLength(50); + b.Property("Retries"); - b.HasKey("Id"); + b.Property("StatusName") + .HasMaxLength(50); - b.ToTable("CapReceivedMessages"); - }); + b.HasKey("Id"); + + b.ToTable("CapReceivedMessages"); + }); modelBuilder.Entity("DotNetCore.CAP.Infrastructure.CapSentMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("Added"); + b.Property("Added"); - b.Property("Content"); + b.Property("Content"); - b.Property("KeyName"); + b.Property("KeyName"); - b.Property("LastRun"); + b.Property("LastRun"); - b.Property("Retries"); + b.Property("Retries"); - b.Property("StatusName") - .HasMaxLength(50); + b.Property("StatusName") + .HasMaxLength(50); - b.HasKey("Id"); + b.HasKey("Id"); - b.ToTable("CapSentMessages"); - }); + b.ToTable("CapSentMessages"); + }); } } -} \ No newline at end of file +}