Commit c1c4a2bf authored by yangxiaodong's avatar yangxiaodong

create new migrations files.

parent ceee751e
...@@ -4,11 +4,12 @@ using Microsoft.EntityFrameworkCore.Infrastructure; ...@@ -4,11 +4,12 @@ using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using DotNetCore.CAP.EntityFrameworkCore; using DotNetCore.CAP.EntityFrameworkCore;
using DotNetCore.CAP.Models;
namespace DotNetCore.CAP.EntityFrameworkCore.Migrations namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
{ {
[DbContext(typeof(CapDbContext))] [DbContext(typeof(CapDbContext))]
[Migration("20170711154104_InitializeDB")] [Migration("20170714102709_InitializeDB")]
partial class InitializeDB partial class InitializeDB
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
...@@ -41,12 +42,12 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations ...@@ -41,12 +42,12 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
b.Property<string>("Content"); b.Property<string>("Content");
b.Property<DateTime?>("ExpiresAt");
b.Property<string>("Group"); b.Property<string>("Group");
b.Property<string>("KeyName"); b.Property<string>("KeyName");
b.Property<DateTime?>("LastRun");
b.Property<int>("Retries"); b.Property<int>("Retries");
b.Property<string>("StatusName") b.Property<string>("StatusName")
...@@ -69,9 +70,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations ...@@ -69,9 +70,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
b.Property<string>("Content"); b.Property<string>("Content");
b.Property<string>("KeyName"); b.Property<DateTime?>("ExpiresAt");
b.Property<DateTime?>("LastRun"); b.Property<string>("KeyName");
b.Property<int>("Retries"); b.Property<int>("Retries");
......
...@@ -35,9 +35,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations ...@@ -35,9 +35,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
Id = table.Column<string>(nullable: false), Id = table.Column<string>(nullable: false),
Added = table.Column<DateTime>(nullable: false), Added = table.Column<DateTime>(nullable: false),
Content = table.Column<string>(nullable: true), Content = table.Column<string>(nullable: true),
ExpiresAt = table.Column<DateTime>(nullable: true),
Group = table.Column<string>(nullable: true), Group = table.Column<string>(nullable: true),
KeyName = table.Column<string>(nullable: true), KeyName = table.Column<string>(nullable: true),
LastRun = table.Column<DateTime>(nullable: true),
Retries = table.Column<int>(nullable: false), Retries = table.Column<int>(nullable: false),
StatusName = table.Column<string>(maxLength: 50, nullable: false) StatusName = table.Column<string>(maxLength: 50, nullable: false)
}, },
...@@ -54,8 +54,8 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations ...@@ -54,8 +54,8 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
Id = table.Column<string>(nullable: false), Id = table.Column<string>(nullable: false),
Added = table.Column<DateTime>(nullable: false), Added = table.Column<DateTime>(nullable: false),
Content = table.Column<string>(nullable: true), Content = table.Column<string>(nullable: true),
ExpiresAt = table.Column<DateTime>(nullable: true),
KeyName = table.Column<string>(nullable: true), KeyName = table.Column<string>(nullable: true),
LastRun = table.Column<DateTime>(nullable: true),
Retries = table.Column<int>(nullable: false), Retries = table.Column<int>(nullable: false),
StatusName = table.Column<string>(maxLength: 50, nullable: false) StatusName = table.Column<string>(maxLength: 50, nullable: false)
}, },
......
...@@ -4,6 +4,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; ...@@ -4,6 +4,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using DotNetCore.CAP.EntityFrameworkCore; using DotNetCore.CAP.EntityFrameworkCore;
using DotNetCore.CAP.Models;
namespace DotNetCore.CAP.EntityFrameworkCore.Migrations namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
{ {
...@@ -40,12 +41,12 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations ...@@ -40,12 +41,12 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
b.Property<string>("Content"); b.Property<string>("Content");
b.Property<DateTime?>("ExpiresAt");
b.Property<string>("Group"); b.Property<string>("Group");
b.Property<string>("KeyName"); b.Property<string>("KeyName");
b.Property<DateTime?>("LastRun");
b.Property<int>("Retries"); b.Property<int>("Retries");
b.Property<string>("StatusName") b.Property<string>("StatusName")
...@@ -68,9 +69,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations ...@@ -68,9 +69,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
b.Property<string>("Content"); b.Property<string>("Content");
b.Property<string>("KeyName"); b.Property<DateTime?>("ExpiresAt");
b.Property<DateTime?>("LastRun"); b.Property<string>("KeyName");
b.Property<int>("Retries"); b.Property<int>("Retries");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment