|
|
|
@ -39,6 +39,27 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpBackgroundJobs", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|
|
|
JobName = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
JobArgs = table.Column<string>(maxLength: 1048576, nullable: false), |
|
|
|
TryCount = table.Column<short>(nullable: false, defaultValue: (short)0), |
|
|
|
CreationTime = table.Column<DateTime>(nullable: false), |
|
|
|
NextTryTime = table.Column<DateTime>(nullable: false), |
|
|
|
LastTryTime = table.Column<DateTime>(nullable: true), |
|
|
|
IsAbandoned = table.Column<bool>(nullable: false, defaultValue: false), |
|
|
|
Priority = table.Column<byte>(nullable: false, defaultValue: (byte)15) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpClaimTypes", |
|
|
|
columns: table => new |
|
|
|
@ -59,6 +80,21 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpFeatureValues", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
Name = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
Value = table.Column<string>(maxLength: 128, nullable: false), |
|
|
|
ProviderName = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
ProviderKey = table.Column<string>(maxLength: 64, nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpOrganizationUnits", |
|
|
|
columns: table => new |
|
|
|
@ -123,6 +159,31 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table.PrimaryKey("PK_AbpRoles", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpSecurityLogs", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|
|
|
TenantId = table.Column<Guid>(nullable: true), |
|
|
|
ApplicationName = table.Column<string>(maxLength: 96, nullable: true), |
|
|
|
Identity = table.Column<string>(maxLength: 96, nullable: true), |
|
|
|
Action = table.Column<string>(maxLength: 96, nullable: true), |
|
|
|
UserId = table.Column<Guid>(nullable: true), |
|
|
|
UserName = table.Column<string>(maxLength: 256, nullable: true), |
|
|
|
TenantName = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
ClientId = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
CorrelationId = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
ClientIpAddress = table.Column<string>(maxLength: 64, nullable: true), |
|
|
|
BrowserInfo = table.Column<string>(maxLength: 512, nullable: true), |
|
|
|
CreationTime = table.Column<DateTime>(nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpSettings", |
|
|
|
columns: table => new |
|
|
|
@ -887,6 +948,11 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpAuditLogs", |
|
|
|
columns: new[] { "TenantId", "UserId", "ExecutionTime" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", |
|
|
|
table: "AbpBackgroundJobs", |
|
|
|
columns: new[] { "IsAbandoned", "NextTryTime" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpEntityChanges_AuditLogId", |
|
|
|
table: "AbpEntityChanges", |
|
|
|
@ -902,6 +968,11 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpEntityPropertyChanges", |
|
|
|
column: "EntityChangeId"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", |
|
|
|
table: "AbpFeatureValues", |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", |
|
|
|
table: "AbpOrganizationUnitRoles", |
|
|
|
@ -932,6 +1003,26 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpRoles", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSecurityLogs_TenantId_Action", |
|
|
|
table: "AbpSecurityLogs", |
|
|
|
columns: new[] { "TenantId", "Action" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSecurityLogs_TenantId_ApplicationName", |
|
|
|
table: "AbpSecurityLogs", |
|
|
|
columns: new[] { "TenantId", "ApplicationName" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSecurityLogs_TenantId_Identity", |
|
|
|
table: "AbpSecurityLogs", |
|
|
|
columns: new[] { "TenantId", "Identity" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSecurityLogs_TenantId_UserId", |
|
|
|
table: "AbpSecurityLogs", |
|
|
|
columns: new[] { "TenantId", "UserId" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|
|
|
table: "AbpSettings", |
|
|
|
@ -1020,12 +1111,18 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpAuditLogActions"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpBackgroundJobs"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpClaimTypes"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpEntityPropertyChanges"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpFeatureValues"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpOrganizationUnitRoles"); |
|
|
|
|
|
|
|
@ -1035,6 +1132,9 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpRoleClaims"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSecurityLogs"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSettings"); |
|
|
|
|