Skip to content

Commit dcdafed

Browse files
committed
Update migrations for net10.0 migration
1 parent c167ddd commit dcdafed

File tree

9 files changed

+2532
-303
lines changed

9 files changed

+2532
-303
lines changed
Lines changed: 53 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ public partial class Initial : Migration
1111
/// <inheritdoc />
1212
protected override void Up(MigrationBuilder migrationBuilder)
1313
{
14+
migrationBuilder.CreateTable(
15+
name: "AbpAuditLogExcelFiles",
16+
columns: table => new
17+
{
18+
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
19+
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
20+
FileName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
21+
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
22+
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
23+
},
24+
constraints: table =>
25+
{
26+
table.PrimaryKey("PK_AbpAuditLogExcelFiles", x => x.Id);
27+
});
28+
1429
migrationBuilder.CreateTable(
1530
name: "AbpAuditLogs",
1631
columns: table => new
@@ -50,6 +65,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
5065
columns: table => new
5166
{
5267
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
68+
ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true),
5369
JobName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
5470
JobArgs = table.Column<string>(type: "nvarchar(max)", maxLength: 1048576, nullable: false),
5571
TryCount = table.Column<short>(type: "smallint", nullable: false, defaultValue: (short)0),
@@ -78,6 +94,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
7894
RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
7995
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
8096
ValueType = table.Column<int>(type: "int", nullable: false),
97+
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
8198
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false),
8299
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false)
83100
},
@@ -243,6 +260,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
243260
IsStatic = table.Column<bool>(type: "bit", nullable: false),
244261
IsPublic = table.Column<bool>(type: "bit", nullable: false),
245262
EntityVersion = table.Column<int>(type: "int", nullable: false),
263+
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
246264
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false),
247265
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false)
248266
},
@@ -287,9 +305,10 @@ protected override void Up(MigrationBuilder migrationBuilder)
287305
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
288306
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
289307
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
290-
IpAddresses = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
308+
IpAddresses = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
291309
SignedIn = table.Column<DateTime>(type: "datetime2", nullable: false),
292-
LastAccessed = table.Column<DateTime>(type: "datetime2", nullable: true)
310+
LastAccessed = table.Column<DateTime>(type: "datetime2", nullable: true),
311+
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true)
293312
},
294313
constraints: table =>
295314
{
@@ -453,6 +472,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
453472
RedirectUris = table.Column<string>(type: "nvarchar(max)", nullable: true),
454473
Requirements = table.Column<string>(type: "nvarchar(max)", nullable: true),
455474
Settings = table.Column<string>(type: "nvarchar(max)", nullable: true),
475+
FrontChannelLogoutUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
456476
ClientUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
457477
LogoUri = table.Column<string>(type: "nvarchar(max)", nullable: true),
458478
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false),
@@ -770,14 +790,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
770790
Subject = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
771791
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
772792
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false),
773-
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false),
774-
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
775-
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
776-
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
777-
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
778-
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
779-
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
780-
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
793+
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false)
781794
},
782795
constraints: table =>
783796
{
@@ -827,16 +840,9 @@ protected override void Up(MigrationBuilder migrationBuilder)
827840
ReferenceId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
828841
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
829842
Subject = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
830-
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
843+
Type = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
831844
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false),
832-
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false),
833-
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
834-
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
835-
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
836-
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
837-
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
838-
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
839-
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
845+
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false)
840846
},
841847
constraints: table =>
842848
{
@@ -1118,6 +1124,9 @@ protected override void Down(MigrationBuilder migrationBuilder)
11181124
migrationBuilder.DropTable(
11191125
name: "AbpAuditLogActions");
11201126

1127+
migrationBuilder.DropTable(
1128+
name: "AbpAuditLogExcelFiles");
1129+
11211130
migrationBuilder.DropTable(
11221131
name: "AbpBackgroundJobs");
11231132

0 commit comments

Comments
 (0)