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