-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VCST-1592: Update OpenIddict (#2842)
- Loading branch information
1 parent
a314abb
commit b12094d
Showing
12 changed files
with
2,381 additions
and
18 deletions.
There are no files selected for viewing
701 changes: 701 additions & 0 deletions
701
...merce.Platform.Data.MySql/Migrations/Security/20241003120247_UpdateOpenIddict.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
99 changes: 99 additions & 0 deletions
99
src/VirtoCommerce.Platform.Data.MySql/Migrations/Security/20241003120247_UpdateOpenIddict.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace VirtoCommerce.Platform.Data.MySql.Migrations.Security | ||
{ | ||
/// <inheritdoc /> | ||
public partial class UpdateOpenIddict : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.RenameColumn( | ||
name: "Type", | ||
table: "OpenIddictApplications", | ||
newName: "ClientType"); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "ApplicationType", | ||
table: "OpenIddictApplications", | ||
type: "varchar(50)", | ||
maxLength: 50, | ||
nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "JsonWebKeySet", | ||
table: "OpenIddictApplications", | ||
type: "longtext", | ||
nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "Settings", | ||
table: "OpenIddictApplications", | ||
type: "longtext", | ||
nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<int>( | ||
name: "Id", | ||
table: "AspNetUserClaims", | ||
type: "int", | ||
nullable: false, | ||
oldClrType: typeof(int), | ||
oldType: "int") | ||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); | ||
|
||
migrationBuilder.AlterColumn<int>( | ||
name: "Id", | ||
table: "AspNetRoleClaims", | ||
type: "int", | ||
nullable: false, | ||
oldClrType: typeof(int), | ||
oldType: "int") | ||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "ApplicationType", | ||
table: "OpenIddictApplications"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "JsonWebKeySet", | ||
table: "OpenIddictApplications"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Settings", | ||
table: "OpenIddictApplications"); | ||
|
||
migrationBuilder.RenameColumn( | ||
name: "ClientType", | ||
table: "OpenIddictApplications", | ||
newName: "Type"); | ||
|
||
migrationBuilder.AlterColumn<int>( | ||
name: "Id", | ||
table: "AspNetUserClaims", | ||
type: "int", | ||
nullable: false, | ||
oldClrType: typeof(int), | ||
oldType: "int") | ||
.OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); | ||
|
||
migrationBuilder.AlterColumn<int>( | ||
name: "Id", | ||
table: "AspNetRoleClaims", | ||
type: "int", | ||
nullable: false, | ||
oldClrType: typeof(int), | ||
oldType: "int") | ||
.OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.