@@ -12,14 +12,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
12
12
name : "AspNetRoles" ,
13
13
columns : table => new
14
14
{
15
- Id = table . Column < string > ( nullable : false ) ,
16
- Name = table . Column < string > ( maxLength : 256 , nullable : true ) ,
17
- NormalizedName = table . Column < string > ( maxLength : 256 , nullable : true ) ,
18
- ConcurrencyStamp = table . Column < string > ( nullable : true ) ,
19
- CreatedOn = table . Column < DateTime > ( nullable : false ) ,
20
- ModifiedOn = table . Column < DateTime > ( nullable : true ) ,
21
- IsDeleted = table . Column < bool > ( nullable : false ) ,
22
- DeletedOn = table . Column < DateTime > ( nullable : true ) ,
15
+ Id = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
16
+ CreatedOn = table . Column < DateTime > ( type : "datetime2" , nullable : false ) ,
17
+ ModifiedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
18
+ IsDeleted = table . Column < bool > ( type : "bit" , nullable : false ) ,
19
+ DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
20
+ Name = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
21
+ NormalizedName = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
22
+ ConcurrencyStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
23
23
} ,
24
24
constraints : table =>
25
25
{
@@ -30,25 +30,25 @@ protected override void Up(MigrationBuilder migrationBuilder)
30
30
name : "AspNetUsers" ,
31
31
columns : table => new
32
32
{
33
- Id = table . Column < string > ( nullable : false ) ,
34
- UserName = table . Column < string > ( maxLength : 256 , nullable : true ) ,
35
- NormalizedUserName = table . Column < string > ( maxLength : 256 , nullable : true ) ,
36
- Email = table . Column < string > ( maxLength : 256 , nullable : true ) ,
37
- NormalizedEmail = table . Column < string > ( maxLength : 256 , nullable : true ) ,
38
- EmailConfirmed = table . Column < bool > ( nullable : false ) ,
39
- PasswordHash = table . Column < string > ( nullable : true ) ,
40
- SecurityStamp = table . Column < string > ( nullable : true ) ,
41
- ConcurrencyStamp = table . Column < string > ( nullable : true ) ,
42
- PhoneNumber = table . Column < string > ( nullable : true ) ,
43
- PhoneNumberConfirmed = table . Column < bool > ( nullable : false ) ,
44
- TwoFactorEnabled = table . Column < bool > ( nullable : false ) ,
45
- LockoutEnd = table . Column < DateTimeOffset > ( nullable : true ) ,
46
- LockoutEnabled = table . Column < bool > ( nullable : false ) ,
47
- AccessFailedCount = table . Column < int > ( nullable : false ) ,
48
- CreatedOn = table . Column < DateTime > ( nullable : false ) ,
49
- ModifiedOn = table . Column < DateTime > ( nullable : true ) ,
50
- IsDeleted = table . Column < bool > ( nullable : false ) ,
51
- DeletedOn = table . Column < DateTime > ( nullable : true ) ,
33
+ Id = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
34
+ CreatedOn = table . Column < DateTime > ( type : "datetime2" , nullable : false ) ,
35
+ ModifiedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
36
+ IsDeleted = table . Column < bool > ( type : "bit" , nullable : false ) ,
37
+ DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
38
+ UserName = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
39
+ NormalizedUserName = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
40
+ Email = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
41
+ NormalizedEmail = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
42
+ EmailConfirmed = table . Column < bool > ( type : "bit" , nullable : false ) ,
43
+ PasswordHash = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
44
+ SecurityStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
45
+ ConcurrencyStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
46
+ PhoneNumber = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
47
+ PhoneNumberConfirmed = table . Column < bool > ( type : "bit" , nullable : false ) ,
48
+ TwoFactorEnabled = table . Column < bool > ( type : "bit" , nullable : false ) ,
49
+ LockoutEnd = table . Column < DateTimeOffset > ( type : "datetimeoffset" , nullable : true ) ,
50
+ LockoutEnabled = table . Column < bool > ( type : "bit" , nullable : false ) ,
51
+ AccessFailedCount = table . Column < int > ( type : "int" , nullable : false ) ,
52
52
} ,
53
53
constraints : table =>
54
54
{
@@ -59,14 +59,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
59
59
name : "Settings" ,
60
60
columns : table => new
61
61
{
62
- Id = table . Column < int > ( nullable : false )
62
+ Id = table . Column < int > ( type : "int" , nullable : false )
63
63
. Annotation ( "SqlServer:Identity" , "1, 1" ) ,
64
- CreatedOn = table . Column < DateTime > ( nullable : false ) ,
65
- ModifiedOn = table . Column < DateTime > ( nullable : true ) ,
66
- IsDeleted = table . Column < bool > ( nullable : false ) ,
67
- DeletedOn = table . Column < DateTime > ( nullable : true ) ,
68
- Name = table . Column < string > ( nullable : true ) ,
69
- Value = table . Column < string > ( nullable : true ) ,
64
+ Name = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
65
+ Value = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
66
+ CreatedOn = table . Column < DateTime > ( type : "datetime2" , nullable : false ) ,
67
+ ModifiedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
68
+ IsDeleted = table . Column < bool > ( type : "bit" , nullable : false ) ,
69
+ DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
70
70
} ,
71
71
constraints : table =>
72
72
{
@@ -77,11 +77,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
77
77
name : "AspNetRoleClaims" ,
78
78
columns : table => new
79
79
{
80
- Id = table . Column < int > ( nullable : false )
80
+ Id = table . Column < int > ( type : "int" , nullable : false )
81
81
. Annotation ( "SqlServer:Identity" , "1, 1" ) ,
82
- RoleId = table . Column < string > ( nullable : false ) ,
83
- ClaimType = table . Column < string > ( nullable : true ) ,
84
- ClaimValue = table . Column < string > ( nullable : true ) ,
82
+ RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
83
+ ClaimType = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
84
+ ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
85
85
} ,
86
86
constraints : table =>
87
87
{
@@ -98,11 +98,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
98
98
name : "AspNetUserClaims" ,
99
99
columns : table => new
100
100
{
101
- Id = table . Column < int > ( nullable : false )
101
+ Id = table . Column < int > ( type : "int" , nullable : false )
102
102
. Annotation ( "SqlServer:Identity" , "1, 1" ) ,
103
- UserId = table . Column < string > ( nullable : false ) ,
104
- ClaimType = table . Column < string > ( nullable : true ) ,
105
- ClaimValue = table . Column < string > ( nullable : true ) ,
103
+ UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
104
+ ClaimType = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
105
+ ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
106
106
} ,
107
107
constraints : table =>
108
108
{
@@ -119,10 +119,10 @@ protected override void Up(MigrationBuilder migrationBuilder)
119
119
name : "AspNetUserLogins" ,
120
120
columns : table => new
121
121
{
122
- LoginProvider = table . Column < string > ( nullable : false ) ,
123
- ProviderKey = table . Column < string > ( nullable : false ) ,
124
- ProviderDisplayName = table . Column < string > ( nullable : true ) ,
125
- UserId = table . Column < string > ( nullable : false ) ,
122
+ LoginProvider = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
123
+ ProviderKey = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
124
+ ProviderDisplayName = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
125
+ UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
126
126
} ,
127
127
constraints : table =>
128
128
{
@@ -139,8 +139,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
139
139
name : "AspNetUserRoles" ,
140
140
columns : table => new
141
141
{
142
- UserId = table . Column < string > ( nullable : false ) ,
143
- RoleId = table . Column < string > ( nullable : false ) ,
142
+ UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
143
+ RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
144
144
} ,
145
145
constraints : table =>
146
146
{
@@ -163,10 +163,10 @@ protected override void Up(MigrationBuilder migrationBuilder)
163
163
name : "AspNetUserTokens" ,
164
164
columns : table => new
165
165
{
166
- UserId = table . Column < string > ( nullable : false ) ,
167
- LoginProvider = table . Column < string > ( nullable : false ) ,
168
- Name = table . Column < string > ( nullable : false ) ,
169
- Value = table . Column < string > ( nullable : true ) ,
166
+ UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
167
+ LoginProvider = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
168
+ Name = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
169
+ Value = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
170
170
} ,
171
171
constraints : table =>
172
172
{
@@ -212,14 +212,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
212
212
column : "RoleId" ) ;
213
213
214
214
migrationBuilder . CreateIndex (
215
- name : "IX_AspNetUsers_IsDeleted " ,
215
+ name : "EmailIndex " ,
216
216
table : "AspNetUsers" ,
217
- column : "IsDeleted " ) ;
217
+ column : "NormalizedEmail " ) ;
218
218
219
219
migrationBuilder . CreateIndex (
220
- name : "EmailIndex " ,
220
+ name : "IX_AspNetUsers_IsDeleted " ,
221
221
table : "AspNetUsers" ,
222
- column : "NormalizedEmail " ) ;
222
+ column : "IsDeleted " ) ;
223
223
224
224
migrationBuilder . CreateIndex (
225
225
name : "UserNameIndex" ,
0 commit comments