Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
22c4ad55
Commit
22c4ad55
authored
Jul 08, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update migration files.
parent
045b9592
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
33 deletions
+44
-33
20170708050416_InitDB.Designer.cs
...orkCore.Test/Migrations/20170708050416_InitDB.Designer.cs
+4
-2
20170708050416_InitDB.cs
...ityFrameworkCore.Test/Migrations/20170708050416_InitDB.cs
+11
-4
TestDbContextModelSnapshot.cs
...ameworkCore.Test/Migrations/TestDbContextModelSnapshot.cs
+29
-27
No files found.
test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170
629074320_InitCreate
.Designer.cs
→
test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170
708050416_InitDB
.Designer.cs
View file @
22c4ad55
...
...
@@ -8,8 +8,8 @@ using DotNetCore.CAP.EntityFrameworkCore.Test;
namespace
DotNetCore.CAP.EntityFrameworkCore.Test.Migrations
{
[
DbContext
(
typeof
(
TestDbContext
))]
[
Migration
(
"20170
629074320_InitCreate
"
)]
partial
class
Init
Create
[
Migration
(
"20170
708050416_InitDB
"
)]
partial
class
Init
DB
{
protected
override
void
BuildTargetModel
(
ModelBuilder
modelBuilder
)
{
...
...
@@ -26,6 +26,8 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations
b
.
Property
<
string
>(
"Content"
);
b
.
Property
<
string
>(
"Group"
);
b
.
Property
<
string
>(
"KeyName"
);
b
.
Property
<
DateTime
>(
"LastRun"
);
...
...
test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170
629074320_InitCreate
.cs
→
test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/20170
708050416_InitDB
.cs
View file @
22c4ad55
...
...
@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace
DotNetCore.CAP.EntityFrameworkCore.Test.Migrations
{
public
partial
class
Init
Create
:
Migration
public
partial
class
Init
DB
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
...
...
@@ -15,12 +15,16 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations
Id
=
table
.
Column
<
string
>(
nullable
:
false
),
Added
=
table
.
Column
<
DateTime
>(
nullable
:
false
),
Content
=
table
.
Column
<
string
>(
nullable
:
true
),
Group
=
table
.
Column
<
string
>(
nullable
:
true
),
KeyName
=
table
.
Column
<
string
>(
nullable
:
true
),
LastRun
=
table
.
Column
<
DateTime
>(
nullable
:
false
),
Retries
=
table
.
Column
<
int
>(
nullable
:
false
),
StatusName
=
table
.
Column
<
string
>(
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
<
int
>(
nullable
:
false
),
StatusName
=
table
.
Column
<
string
>(
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
}
test/DotNetCore.CAP.EntityFrameworkCore.Test/Migrations/TestDbContextModelSnapshot.cs
View file @
22c4ad55
...
...
@@ -17,50 +17,52 @@ namespace DotNetCore.CAP.EntityFrameworkCore.Test.Migrations
.
HasAnnotation
(
"SqlServer:ValueGenerationStrategy"
,
SqlServerValueGenerationStrategy
.
IdentityColumn
);
modelBuilder
.
Entity
(
"DotNetCore.CAP.Infrastructure.CapReceivedMessage"
,
b
=>
{
b
.
Property
<
string
>(
"Id"
)
.
ValueGeneratedOnAdd
();
{
b
.
Property
<
string
>(
"Id"
)
.
ValueGeneratedOnAdd
();
b
.
Property
<
DateTime
>(
"Added"
);
b
.
Property
<
DateTime
>(
"Added"
);
b
.
Property
<
string
>(
"Content"
);
b
.
Property
<
string
>(
"Content"
);
b
.
Property
<
string
>(
"KeyName
"
);
b
.
Property
<
string
>(
"Group
"
);
b
.
Property
<
DateTime
>(
"LastRun
"
);
b
.
Property
<
string
>(
"KeyName
"
);
b
.
Property
<
int
>(
"Retries
"
);
b
.
Property
<
DateTime
>(
"LastRun
"
);
b
.
Property
<
string
>(
"StatusName"
)
.
HasMaxLength
(
50
);
b
.
Property
<
int
>(
"Retries"
);
b
.
HasKey
(
"Id"
);
b
.
Property
<
string
>(
"StatusName"
)
.
HasMaxLength
(
50
);
b
.
ToTable
(
"CapReceivedMessages"
);
});
b
.
HasKey
(
"Id"
);
b
.
ToTable
(
"CapReceivedMessages"
);
});
modelBuilder
.
Entity
(
"DotNetCore.CAP.Infrastructure.CapSentMessage"
,
b
=>
{
b
.
Property
<
string
>(
"Id"
)
.
ValueGeneratedOnAdd
();
{
b
.
Property
<
string
>(
"Id"
)
.
ValueGeneratedOnAdd
();
b
.
Property
<
DateTime
>(
"Added"
);
b
.
Property
<
DateTime
>(
"Added"
);
b
.
Property
<
string
>(
"Content"
);
b
.
Property
<
string
>(
"Content"
);
b
.
Property
<
string
>(
"KeyName"
);
b
.
Property
<
string
>(
"KeyName"
);
b
.
Property
<
DateTime
>(
"LastRun"
);
b
.
Property
<
DateTime
>(
"LastRun"
);
b
.
Property
<
int
>(
"Retries"
);
b
.
Property
<
int
>(
"Retries"
);
b
.
Property
<
string
>(
"StatusName"
)
.
HasMaxLength
(
50
);
b
.
Property
<
string
>(
"StatusName"
)
.
HasMaxLength
(
50
);
b
.
HasKey
(
"Id"
);
b
.
HasKey
(
"Id"
);
b
.
ToTable
(
"CapSentMessages"
);
});
b
.
ToTable
(
"CapSentMessages"
);
});
}
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment