Skip to content

Commit 3c27f0a

Browse files
committed
Recreate initial migration
1 parent 4424f5b commit 3c27f0a

File tree

4 files changed

+116
-98
lines changed

4 files changed

+116
-98
lines changed

src/Data/AspNetCoreTemplate.Data/Migrations/20191224074400_InitialCreate.Designer.cs renamed to src/Data/AspNetCoreTemplate.Data/Migrations/20201121114920_InitialCreate.Designer.cs

Lines changed: 30 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Data/AspNetCoreTemplate.Data/Migrations/20191224074400_InitialCreate.cs renamed to src/Data/AspNetCoreTemplate.Data/Migrations/20201121114920_InitialCreate.cs

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
1212
name: "AspNetRoles",
1313
columns: table => new
1414
{
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),
2323
},
2424
constraints: table =>
2525
{
@@ -30,25 +30,25 @@ protected override void Up(MigrationBuilder migrationBuilder)
3030
name: "AspNetUsers",
3131
columns: table => new
3232
{
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),
5252
},
5353
constraints: table =>
5454
{
@@ -59,14 +59,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
5959
name: "Settings",
6060
columns: table => new
6161
{
62-
Id = table.Column<int>(nullable: false)
62+
Id = table.Column<int>(type: "int", nullable: false)
6363
.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),
7070
},
7171
constraints: table =>
7272
{
@@ -77,11 +77,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
7777
name: "AspNetRoleClaims",
7878
columns: table => new
7979
{
80-
Id = table.Column<int>(nullable: false)
80+
Id = table.Column<int>(type: "int", nullable: false)
8181
.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),
8585
},
8686
constraints: table =>
8787
{
@@ -98,11 +98,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
9898
name: "AspNetUserClaims",
9999
columns: table => new
100100
{
101-
Id = table.Column<int>(nullable: false)
101+
Id = table.Column<int>(type: "int", nullable: false)
102102
.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),
106106
},
107107
constraints: table =>
108108
{
@@ -119,10 +119,10 @@ protected override void Up(MigrationBuilder migrationBuilder)
119119
name: "AspNetUserLogins",
120120
columns: table => new
121121
{
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),
126126
},
127127
constraints: table =>
128128
{
@@ -139,8 +139,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
139139
name: "AspNetUserRoles",
140140
columns: table => new
141141
{
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),
144144
},
145145
constraints: table =>
146146
{
@@ -163,10 +163,10 @@ protected override void Up(MigrationBuilder migrationBuilder)
163163
name: "AspNetUserTokens",
164164
columns: table => new
165165
{
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),
170170
},
171171
constraints: table =>
172172
{
@@ -212,14 +212,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
212212
column: "RoleId");
213213

214214
migrationBuilder.CreateIndex(
215-
name: "IX_AspNetUsers_IsDeleted",
215+
name: "EmailIndex",
216216
table: "AspNetUsers",
217-
column: "IsDeleted");
217+
column: "NormalizedEmail");
218218

219219
migrationBuilder.CreateIndex(
220-
name: "EmailIndex",
220+
name: "IX_AspNetUsers_IsDeleted",
221221
table: "AspNetUsers",
222-
column: "NormalizedEmail");
222+
column: "IsDeleted");
223223

224224
migrationBuilder.CreateIndex(
225225
name: "UserNameIndex",

0 commit comments

Comments
 (0)