Browse Source

create new migrations files.

master
yangxiaodong 7 years ago
parent
commit
c1c4a2bf39
3 changed files with 13 additions and 11 deletions
  1. +6
    -5
      src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.Designer.cs
  2. +2
    -2
      src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.cs
  3. +5
    -4
      src/DotNetCore.CAP.EntityFrameworkCore/Migrations/CapDbContextModelSnapshot.cs

src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.Designer.cs → src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.Designer.cs View File

@@ -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<string>("Content");

b.Property<DateTime?>("ExpiresAt");

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

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

b.Property<DateTime?>("LastRun");

b.Property<int>("Retries");

b.Property<string>("StatusName")
@@ -69,9 +70,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations

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

b.Property<string>("KeyName");
b.Property<DateTime?>("ExpiresAt");

b.Property<DateTime?>("LastRun");
b.Property<string>("KeyName");

b.Property<int>("Retries");


src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170711154104_InitializeDB.cs → src/DotNetCore.CAP.EntityFrameworkCore/Migrations/20170714102709_InitializeDB.cs View File

@@ -35,9 +35,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
Id = table.Column<string>(nullable: false),
Added = table.Column<DateTime>(nullable: false),
Content = table.Column<string>(nullable: true),
ExpiresAt = table.Column<DateTime>(nullable: true),
Group = table.Column<string>(nullable: true),
KeyName = table.Column<string>(nullable: true),
LastRun = table.Column<DateTime>(nullable: true),
Retries = table.Column<int>(nullable: false),
StatusName = table.Column<string>(maxLength: 50, nullable: false)
},
@@ -54,8 +54,8 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations
Id = table.Column<string>(nullable: false),
Added = table.Column<DateTime>(nullable: false),
Content = table.Column<string>(nullable: true),
ExpiresAt = table.Column<DateTime>(nullable: true),
KeyName = table.Column<string>(nullable: true),
LastRun = table.Column<DateTime>(nullable: true),
Retries = table.Column<int>(nullable: false),
StatusName = table.Column<string>(maxLength: 50, nullable: false)
},

+ 5
- 4
src/DotNetCore.CAP.EntityFrameworkCore/Migrations/CapDbContextModelSnapshot.cs View File

@@ -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<string>("Content");

b.Property<DateTime?>("ExpiresAt");

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

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

b.Property<DateTime?>("LastRun");

b.Property<int>("Retries");

b.Property<string>("StatusName")
@@ -68,9 +69,9 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Migrations

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

b.Property<string>("KeyName");
b.Property<DateTime?>("ExpiresAt");

b.Property<DateTime?>("LastRun");
b.Property<string>("KeyName");

b.Property<int>("Retries");



Loading…
Cancel
Save