From c1c4a2bf39bdd1c15f25f4b575cb93dc46eea158 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Fri, 14 Jul 2017 18:30:10 +0800 Subject: [PATCH] create new migrations files. --- ...ner.cs => 20170714102709_InitializeDB.Designer.cs} | 11 ++++++----- ...InitializeDB.cs => 20170714102709_InitializeDB.cs} | 4 ++-- .../Migrations/CapDbContextModelSnapshot.cs | 9 +++++---- 3 files changed, 13 insertions(+), 11 deletions(-) rename src/DotNetCore.CAP.EntityFrameworkCore/Migrations/{20170711154104_InitializeDB.Designer.cs => 20170714102709_InitializeDB.Designer.cs} (93%) rename src/DotNetCore.CAP.EntityFrameworkCore/Migrations/{20170711154104_InitializeDB.cs => 20170714102709_InitializeDB.cs} (96%) diff --git a/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.Designer.cs b/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.Designer.cs similarity index 93% rename from src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.Designer.cs rename to src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.Designer.cs index 0f9da26..5d5fb40 100644 --- a/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.Designer.cs +++ b/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.Designer.cs @@ -4,11 +4,12 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using DotNetCore.CAP.EntityFrameworkCore; +using DotNetCore.CAP.Models; namespace DotNetCore.CAP.EntityFrameworkCore.Migrations { [DbContext(typeof(CapDbContext))] - [Migration("20170711154104_InitializeDB")] + [Migration("20170714102709_InitializeDB")] partial class InitializeDB { protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -41,12 +42,12 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations b.Property("Content"); + b.Property("ExpiresAt"); + b.Property("Group"); b.Property("KeyName"); - b.Property("LastRun"); - b.Property("Retries"); b.Property("StatusName") @@ -69,9 +70,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations b.Property("Content"); - b.Property("KeyName"); + b.Property("ExpiresAt"); - b.Property("LastRun"); + b.Property("KeyName"); b.Property("Retries"); diff --git a/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.cs b/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.cs similarity index 96% rename from src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.cs rename to src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.cs index dd96f24..4607b1e 100644 --- a/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.cs +++ b/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.cs @@ -35,9 +35,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations Id = table.Column(nullable: false), Added = table.Column(nullable: false), Content = table.Column(nullable: true), + ExpiresAt = table.Column(nullable: true), Group = table.Column(nullable: true), KeyName = table.Column(nullable: true), - LastRun = table.Column(nullable: true), Retries = table.Column(nullable: false), StatusName = table.Column(maxLength: 50, nullable: false) }, @@ -54,8 +54,8 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations Id = table.Column(nullable: false), Added = table.Column(nullable: false), Content = table.Column(nullable: true), + ExpiresAt = table.Column(nullable: true), KeyName = table.Column(nullable: true), - LastRun = table.Column(nullable: true), Retries = table.Column(nullable: false), StatusName = table.Column(maxLength: 50, nullable: false) }, diff --git a/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/CapDbContextModelSnapshot.cs b/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/CapDbContextModelSnapshot.cs index 765fa0f..63f1770 100644 --- a/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/CapDbContextModelSnapshot.cs +++ b/src/DotNetCore.CAP.EntityFrameworkCore/Migrations/CapDbContextModelSnapshot.cs @@ -4,6 +4,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using DotNetCore.CAP.EntityFrameworkCore; +using DotNetCore.CAP.Models; namespace DotNetCore.CAP.EntityFrameworkCore.Migrations { @@ -40,12 +41,12 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations b.Property("Content"); + b.Property("ExpiresAt"); + b.Property("Group"); b.Property("KeyName"); - b.Property("LastRun"); - b.Property("Retries"); b.Property("StatusName") @@ -68,9 +69,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations b.Property("Content"); - b.Property("KeyName"); + b.Property("ExpiresAt"); - b.Property("LastRun"); + b.Property("KeyName"); b.Property("Retries");