|
|
|
@ -23,8 +23,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), |
|
|
|
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
ValueType = table.Column<int>(type: "int", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -107,8 +107,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false), |
|
|
|
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -188,8 +188,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
IsStatic = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
IsPublic = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
@ -213,14 +213,34 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpSettingDefinitions", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
DisplayName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), |
|
|
|
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), |
|
|
|
DefaultValue = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
IsVisibleToClients = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
Providers = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), |
|
|
|
IsInherited = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
IsEncrypted = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpSettingDefinitions", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpSettings", |
|
|
|
columns: table => new |
|
|
|
@ -243,8 +263,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -258,6 +278,22 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
table.PrimaryKey("PK_AbpTenants", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpUserDelegations", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
SourceUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
TargetUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
StartTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
EndTime = table.Column<DateTime>(type: "datetime2", nullable: false) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpUserDelegations", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpUsers", |
|
|
|
columns: table => new |
|
|
|
@ -284,8 +320,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
ShouldChangePasswordOnNextLogin = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
|
LastPasswordChangeTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -317,8 +353,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
|
|
ClientUri = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
LogoUri = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -344,8 +380,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
|
|
Properties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
Resources = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -553,8 +589,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
|
|
Subject = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true), |
|
|
|
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -589,8 +625,8 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
|
|
Subject = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true), |
|
|
|
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
@ -714,6 +750,12 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
table: "AbpSecurityLogs", |
|
|
|
columns: new[] { "TenantId", "UserId" }); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSettingDefinitions_Name", |
|
|
|
table: "AbpSettingDefinitions", |
|
|
|
column: "Name", |
|
|
|
unique: true); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpSettings_Name_ProviderName_ProviderKey", |
|
|
|
table: "AbpSettings", |
|
|
|
@ -833,6 +875,9 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSecurityLogs"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSettingDefinitions"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSettings"); |
|
|
|
|
|
|
|
@ -842,6 +887,9 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpUserClaims"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpUserDelegations"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpUserLogins"); |
|
|
|
|