|
|
|
@ -13,28 +13,28 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpAuditLogs", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true), |
|
|
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
TenantName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ImpersonatorUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
ImpersonatorTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
ExecutionDuration = table.Column<int>(type: "int", nullable: false), |
|
|
|
ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
ClientName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), |
|
|
|
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
CorrelationId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), |
|
|
|
HttpMethod = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), |
|
|
|
Url = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
Exceptions = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
Comments = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
HttpStatusCode = table.Column<int>(type: "int", nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
ApplicationName = table.Column<string>(type: "character varying(96)", maxLength: 96, nullable: true), |
|
|
|
UserId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
UserName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
TenantName = table.Column<string>(type: "text", nullable: true), |
|
|
|
ImpersonatorUserId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
ImpersonatorTenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
ExecutionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), |
|
|
|
ExecutionDuration = table.Column<int>(type: "integer", nullable: false), |
|
|
|
ClientIpAddress = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true), |
|
|
|
ClientName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true), |
|
|
|
ClientId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true), |
|
|
|
CorrelationId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true), |
|
|
|
BrowserInfo = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true), |
|
|
|
HttpMethod = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: true), |
|
|
|
Url = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true), |
|
|
|
Exceptions = table.Column<string>(type: "text", nullable: true), |
|
|
|
Comments = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true), |
|
|
|
HttpStatusCode = table.Column<int>(type: "integer", nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "text", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -45,11 +45,11 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpBlobContainers", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "text", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -60,11 +60,11 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpFeatureValues", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
Value = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
Value = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
ProviderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true), |
|
|
|
ProviderKey = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -75,11 +75,11 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpPermissionGrants", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
|
|
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
ProviderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false), |
|
|
|
ProviderKey = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -90,11 +90,11 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpSettings", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
Value = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: false), |
|
|
|
ProviderName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
ProviderKey = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
Value = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: false), |
|
|
|
ProviderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true), |
|
|
|
ProviderKey = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -105,15 +105,15 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpAuditLogActions", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
AuditLogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
ServiceName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
MethodName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), |
|
|
|
Parameters = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), |
|
|
|
ExecutionTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
ExecutionDuration = table.Column<int>(type: "int", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
AuditLogId = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
ServiceName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true), |
|
|
|
MethodName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true), |
|
|
|
Parameters = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true), |
|
|
|
ExecutionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), |
|
|
|
ExecutionDuration = table.Column<int>(type: "integer", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "text", nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -130,15 +130,15 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpEntityChanges", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
AuditLogId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
ChangeTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
ChangeType = table.Column<byte>(type: "tinyint", nullable: false), |
|
|
|
EntityTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
EntityId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
EntityTypeFullName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
AuditLogId = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
ChangeTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), |
|
|
|
ChangeType = table.Column<byte>(type: "smallint", nullable: false), |
|
|
|
EntityTenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
EntityId = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
EntityTypeFullName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "text", nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -155,13 +155,13 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpBlobs", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
ContainerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|
|
|
Content = table.Column<byte[]>(type: "varbinary(max)", maxLength: 2147483647, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
ContainerId = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
Name = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false), |
|
|
|
Content = table.Column<byte[]>(type: "bytea", maxLength: 2147483647, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "text", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -178,13 +178,13 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
name: "AbpEntityPropertyChanges", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
EntityChangeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
NewValue = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), |
|
|
|
OriginalValue = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), |
|
|
|
PropertyName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
PropertyTypeFullName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false) |
|
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uuid", nullable: true), |
|
|
|
EntityChangeId = table.Column<Guid>(type: "uuid", nullable: false), |
|
|
|
NewValue = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true), |
|
|
|
OriginalValue = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true), |
|
|
|
PropertyName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false), |
|
|
|
PropertyTypeFullName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -203,7 +203,7 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
column: "AuditLogId"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", |
|
|
|
name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_Executio~", |
|
|
|
table: "AbpAuditLogActions", |
|
|
|
columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); |
|
|
|
|
|
|
|
@ -250,17 +250,20 @@ namespace EShopOnAbp.AdministrationService.Migrations |
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", |
|
|
|
table: "AbpFeatureValues", |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }, |
|
|
|
unique: true); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", |
|
|
|
name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", |
|
|
|
table: "AbpPermissionGrants", |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|
|
|
columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" }, |
|
|
|
unique: true); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|
|
|
table: "AbpSettings", |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|
|
|
columns: new[] { "Name", "ProviderName", "ProviderKey" }, |
|
|
|
unique: true); |
|
|
|
} |
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |