1
- using System ;
2
- using Microsoft . EntityFrameworkCore . Migrations ;
3
-
4
- #nullable disable
1
+ #nullable disable
5
2
6
3
namespace AspNetCoreTemplate . Data . Migrations
7
4
{
5
+ using System ;
6
+
7
+ using Microsoft . EntityFrameworkCore . Migrations ;
8
+
8
9
public partial class InitialCreate : Migration
9
10
{
10
11
protected override void Up ( MigrationBuilder migrationBuilder )
@@ -20,7 +21,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
20
21
DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
21
22
Name = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
22
23
NormalizedName = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
23
- ConcurrencyStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
24
+ ConcurrencyStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
24
25
} ,
25
26
constraints : table =>
26
27
{
@@ -49,7 +50,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
49
50
TwoFactorEnabled = table . Column < bool > ( type : "bit" , nullable : false ) ,
50
51
LockoutEnd = table . Column < DateTimeOffset > ( type : "datetimeoffset" , nullable : true ) ,
51
52
LockoutEnabled = table . Column < bool > ( type : "bit" , nullable : false ) ,
52
- AccessFailedCount = table . Column < int > ( type : "int" , nullable : false )
53
+ AccessFailedCount = table . Column < int > ( type : "int" , nullable : false ) ,
53
54
} ,
54
55
constraints : table =>
55
56
{
@@ -67,7 +68,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
67
68
CreatedOn = table . Column < DateTime > ( type : "datetime2" , nullable : false ) ,
68
69
ModifiedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
69
70
IsDeleted = table . Column < bool > ( type : "bit" , nullable : false ) ,
70
- DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true )
71
+ DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
71
72
} ,
72
73
constraints : table =>
73
74
{
@@ -82,7 +83,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
82
83
. Annotation ( "SqlServer:Identity" , "1, 1" ) ,
83
84
RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
84
85
ClaimType = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
85
- ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
86
+ ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
86
87
} ,
87
88
constraints : table =>
88
89
{
@@ -103,7 +104,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
103
104
. Annotation ( "SqlServer:Identity" , "1, 1" ) ,
104
105
UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
105
106
ClaimType = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
106
- ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
107
+ ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
107
108
} ,
108
109
constraints : table =>
109
110
{
@@ -123,7 +124,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
123
124
LoginProvider = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
124
125
ProviderKey = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
125
126
ProviderDisplayName = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
126
- UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false )
127
+ UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
127
128
} ,
128
129
constraints : table =>
129
130
{
@@ -141,7 +142,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
141
142
columns : table => new
142
143
{
143
144
UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
144
- RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false )
145
+ RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
145
146
} ,
146
147
constraints : table =>
147
148
{
@@ -167,7 +168,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
167
168
UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
168
169
LoginProvider = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
169
170
Name = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
170
- Value = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
171
+ Value = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
171
172
} ,
172
173
constraints : table =>
173
174
{
0 commit comments