-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7bedd0
commit c1de25a
Showing
13 changed files
with
102 additions
and
113 deletions.
There are no files selected for viewing
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
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
108 changes: 53 additions & 55 deletions
108
samples/Server/Models/Data/UI/20231220090227_OpenIddict5Support.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 |
---|---|---|
@@ -1,59 +1,57 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Server.Models.Data.UI | ||
namespace Server.Models.Data.UI; | ||
|
||
/// <inheritdoc /> | ||
public partial class OpenIddict5Support : Migration | ||
{ | ||
/// <inheritdoc /> | ||
public partial class OpenIddict5Support : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.RenameColumn( | ||
name: "Type", | ||
table: "OpenIddictApplications", | ||
newName: "ClientType"); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "ApplicationType", | ||
table: "OpenIddictApplications", | ||
type: "TEXT", | ||
maxLength: 50, | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "JsonWebKeySet", | ||
table: "OpenIddictApplications", | ||
type: "TEXT", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "Settings", | ||
table: "OpenIddictApplications", | ||
type: "TEXT", | ||
nullable: true); | ||
} | ||
|
||
/// <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"); | ||
} | ||
} | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.RenameColumn( | ||
name: "Type", | ||
table: "OpenIddictApplications", | ||
newName: "ClientType"); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "ApplicationType", | ||
table: "OpenIddictApplications", | ||
type: "TEXT", | ||
maxLength: 50, | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "JsonWebKeySet", | ||
table: "OpenIddictApplications", | ||
type: "TEXT", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "Settings", | ||
table: "OpenIddictApplications", | ||
type: "TEXT", | ||
nullable: true); | ||
} | ||
|
||
/// <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"); | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
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