diff --git a/src/Umbraco.Cms.Api.Delivery/Umbraco.Cms.Api.Delivery.csproj b/src/Umbraco.Cms.Api.Delivery/Umbraco.Cms.Api.Delivery.csproj
index a37f74f541..0306dab5af 100644
--- a/src/Umbraco.Cms.Api.Delivery/Umbraco.Cms.Api.Delivery.csproj
+++ b/src/Umbraco.Cms.Api.Delivery/Umbraco.Cms.Api.Delivery.csproj
@@ -6,7 +6,6 @@
-
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.Designer.cs b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.Designer.cs
index 602cd3a279..d0de28b0db 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.Designer.cs
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.Designer.cs
@@ -17,250 +17,7 @@ namespace Umbraco.Cms.Persistence.EFCore.SqlServer.Migrations
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "7.0.7")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("nvarchar(450)");
-
- b.Property("ClientId")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
-
- b.Property("ClientSecret")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("ConsentType")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DisplayNames")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Permissions")
- .HasColumnType("nvarchar(max)");
-
- b.Property("PostLogoutRedirectUris")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Properties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("RedirectUris")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Requirements")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Type")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.HasKey("Id");
-
- b.HasIndex("ClientId")
- .IsUnique()
- .HasFilter("[ClientId] IS NOT NULL");
-
- b.ToTable("umbracoOpenIddictApplications", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("nvarchar(450)");
-
- b.Property("ApplicationId")
- .HasColumnType("nvarchar(450)");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("CreationDate")
- .HasColumnType("datetime2");
-
- b.Property("Properties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Scopes")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Status")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("Subject")
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("Type")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.HasKey("Id");
-
- b.HasIndex("ApplicationId", "Status", "Subject", "Type");
-
- b.ToTable("umbracoOpenIddictAuthorizations", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreScope", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("nvarchar(450)");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("Description")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Descriptions")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("DisplayNames")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Name")
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
-
- b.Property("Properties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Resources")
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.HasIndex("Name")
- .IsUnique()
- .HasFilter("[Name] IS NOT NULL");
-
- b.ToTable("umbracoOpenIddictScopes", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("nvarchar(450)");
-
- b.Property("ApplicationId")
- .HasColumnType("nvarchar(450)");
-
- b.Property("AuthorizationId")
- .HasColumnType("nvarchar(450)");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("CreationDate")
- .HasColumnType("datetime2");
-
- b.Property("ExpirationDate")
- .HasColumnType("datetime2");
-
- b.Property("Payload")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Properties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("RedemptionDate")
- .HasColumnType("datetime2");
-
- b.Property("ReferenceId")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
-
- b.Property("Status")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.Property("Subject")
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("Type")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
-
- b.HasKey("Id");
-
- b.HasIndex("AuthorizationId");
-
- b.HasIndex("ReferenceId")
- .IsUnique()
- .HasFilter("[ReferenceId] IS NOT NULL");
-
- b.HasIndex("ApplicationId", "Status", "Subject", "Type");
-
- b.ToTable("umbracoOpenIddictTokens", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
- {
- b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
- .WithMany("Authorizations")
- .HasForeignKey("ApplicationId");
-
- b.Navigation("Application");
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
- {
- b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
- .WithMany("Tokens")
- .HasForeignKey("ApplicationId");
-
- b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", "Authorization")
- .WithMany("Tokens")
- .HasForeignKey("AuthorizationId");
-
- b.Navigation("Application");
-
- b.Navigation("Authorization");
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
- {
- b.Navigation("Authorizations");
-
- b.Navigation("Tokens");
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
- {
- b.Navigation("Tokens");
- });
-#pragma warning restore 612, 618
}
}
}
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.cs b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.cs
index 9bf5191959..bade2aa8db 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.cs
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230622184303_InitialCreate.cs
@@ -11,156 +11,13 @@ namespace Umbraco.Cms.Persistence.EFCore.SqlServer.Migrations
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictApplications",
- columns: table => new
- {
- Id = table.Column(type: "nvarchar(450)", nullable: false),
- ClientId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
- ClientSecret = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- ConsentType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- DisplayName = table.Column(type: "nvarchar(max)", nullable: true),
- DisplayNames = table.Column(type: "nvarchar(max)", nullable: true),
- Permissions = table.Column(type: "nvarchar(max)", nullable: true),
- PostLogoutRedirectUris = table.Column(type: "nvarchar(max)", nullable: true),
- Properties = table.Column(type: "nvarchar(max)", nullable: true),
- RedirectUris = table.Column(type: "nvarchar(max)", nullable: true),
- Requirements = table.Column(type: "nvarchar(max)", nullable: true),
- Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictApplications", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictScopes",
- columns: table => new
- {
- Id = table.Column(type: "nvarchar(450)", nullable: false),
- ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- Description = table.Column(type: "nvarchar(max)", nullable: true),
- Descriptions = table.Column(type: "nvarchar(max)", nullable: true),
- DisplayName = table.Column(type: "nvarchar(max)", nullable: true),
- DisplayNames = table.Column(type: "nvarchar(max)", nullable: true),
- Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
- Properties = table.Column(type: "nvarchar(max)", nullable: true),
- Resources = table.Column(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictScopes", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictAuthorizations",
- columns: table => new
- {
- Id = table.Column(type: "nvarchar(450)", nullable: false),
- ApplicationId = table.Column(type: "nvarchar(450)", nullable: true),
- ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- CreationDate = table.Column(type: "datetime2", nullable: true),
- Properties = table.Column(type: "nvarchar(max)", nullable: true),
- Scopes = table.Column(type: "nvarchar(max)", nullable: true),
- Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- Subject = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true),
- Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictAuthorizations", x => x.Id);
- table.ForeignKey(
- name: "FK_umbracoOpenIddictAuthorizations_umbracoOpenIddictApplications_ApplicationId",
- column: x => x.ApplicationId,
- principalTable: "umbracoOpenIddictApplications",
- principalColumn: "Id");
- });
-
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictTokens",
- columns: table => new
- {
- Id = table.Column(type: "nvarchar(450)", nullable: false),
- ApplicationId = table.Column(type: "nvarchar(450)", nullable: true),
- AuthorizationId = table.Column(type: "nvarchar(450)", nullable: true),
- ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- CreationDate = table.Column(type: "datetime2", nullable: true),
- ExpirationDate = table.Column(type: "datetime2", nullable: true),
- Payload = table.Column(type: "nvarchar(max)", nullable: true),
- Properties = table.Column(type: "nvarchar(max)", nullable: true),
- RedemptionDate = table.Column(type: "datetime2", nullable: true),
- ReferenceId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
- Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- Subject = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true),
- Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictTokens", x => x.Id);
- table.ForeignKey(
- name: "FK_umbracoOpenIddictTokens_umbracoOpenIddictApplications_ApplicationId",
- column: x => x.ApplicationId,
- principalTable: "umbracoOpenIddictApplications",
- principalColumn: "Id");
- table.ForeignKey(
- name: "FK_umbracoOpenIddictTokens_umbracoOpenIddictAuthorizations_AuthorizationId",
- column: x => x.AuthorizationId,
- principalTable: "umbracoOpenIddictAuthorizations",
- principalColumn: "Id");
- });
-
- migrationBuilder.CreateIndex(
- name: "IX_umbracoOpenIddictApplications_ClientId",
- table: "umbracoOpenIddictApplications",
- column: "ClientId",
- unique: true,
- filter: "[ClientId] IS NOT NULL");
-
- migrationBuilder.CreateIndex(
- name: "IX_umbracoOpenIddictAuthorizations_ApplicationId_Status_Subject_Type",
- table: "umbracoOpenIddictAuthorizations",
- columns: new[] { "ApplicationId", "Status", "Subject", "Type" });
-
- migrationBuilder.CreateIndex(
- name: "IX_umbracoOpenIddictScopes_Name",
- table: "umbracoOpenIddictScopes",
- column: "Name",
- unique: true,
- filter: "[Name] IS NOT NULL");
-
- migrationBuilder.CreateIndex(
- name: "IX_umbracoOpenIddictTokens_ApplicationId_Status_Subject_Type",
- table: "umbracoOpenIddictTokens",
- columns: new[] { "ApplicationId", "Status", "Subject", "Type" });
-
- migrationBuilder.CreateIndex(
- name: "IX_umbracoOpenIddictTokens_AuthorizationId",
- table: "umbracoOpenIddictTokens",
- column: "AuthorizationId");
-
- migrationBuilder.CreateIndex(
- name: "IX_umbracoOpenIddictTokens_ReferenceId",
- table: "umbracoOpenIddictTokens",
- column: "ReferenceId",
- unique: true,
- filter: "[ReferenceId] IS NOT NULL");
+ // No op. Existing tables are added by npoco. This will only create the history table.
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
- migrationBuilder.DropTable(
- name: "umbracoOpenIddictScopes");
- migrationBuilder.DropTable(
- name: "umbracoOpenIddictTokens");
-
- migrationBuilder.DropTable(
- name: "umbracoOpenIddictAuthorizations");
-
- migrationBuilder.DropTable(
- name: "umbracoOpenIddictApplications");
}
}
}
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230807654321_AddOpenIddict.Designer.cs b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230807654321_AddOpenIddict.Designer.cs
new file mode 100644
index 0000000000..1c28fab7bd
--- /dev/null
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230807654321_AddOpenIddict.Designer.cs
@@ -0,0 +1,266 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace Umbraco.Cms.Persistence.EFCore.SqlServer.Migrations
+{
+ [DbContext(typeof(UmbracoDbContext))]
+ [Migration("20230807654321_AddOpenIddict")]
+ partial class AddOpenIddict
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "7.0.7")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ClientId")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("ClientSecret")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ConcurrencyToken")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ConsentType")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("DisplayName")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DisplayNames")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Permissions")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PostLogoutRedirectUris")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Properties")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RedirectUris")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Requirements")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Type")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ClientId")
+ .IsUnique()
+ .HasFilter("[ClientId] IS NOT NULL");
+
+ b.ToTable("umbracoOpenIddictApplications", (string)null);
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ApplicationId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ConcurrencyToken")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Properties")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Scopes")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Status")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Subject")
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("Type")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ApplicationId", "Status", "Subject", "Type");
+
+ b.ToTable("umbracoOpenIddictAuthorizations", (string)null);
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreScope", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ConcurrencyToken")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Description")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Descriptions")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DisplayName")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DisplayNames")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Name")
+ .HasMaxLength(200)
+ .HasColumnType("nvarchar(200)");
+
+ b.Property("Properties")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Resources")
+ .HasColumnType("nvarchar(max)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Name")
+ .IsUnique()
+ .HasFilter("[Name] IS NOT NULL");
+
+ b.ToTable("umbracoOpenIddictScopes", (string)null);
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ApplicationId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("AuthorizationId")
+ .HasColumnType("nvarchar(450)");
+
+ b.Property("ConcurrencyToken")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("CreationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ExpirationDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Payload")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Properties")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RedemptionDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ReferenceId")
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property("Status")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Subject")
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("Type")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AuthorizationId");
+
+ b.HasIndex("ReferenceId")
+ .IsUnique()
+ .HasFilter("[ReferenceId] IS NOT NULL");
+
+ b.HasIndex("ApplicationId", "Status", "Subject", "Type");
+
+ b.ToTable("umbracoOpenIddictTokens", (string)null);
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
+ {
+ b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
+ .WithMany("Authorizations")
+ .HasForeignKey("ApplicationId");
+
+ b.Navigation("Application");
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
+ {
+ b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
+ .WithMany("Tokens")
+ .HasForeignKey("ApplicationId");
+
+ b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", "Authorization")
+ .WithMany("Tokens")
+ .HasForeignKey("AuthorizationId");
+
+ b.Navigation("Application");
+
+ b.Navigation("Authorization");
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
+ {
+ b.Navigation("Authorizations");
+
+ b.Navigation("Tokens");
+ });
+
+ modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
+ {
+ b.Navigation("Tokens");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230807654321_AddOpenIddict.cs b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230807654321_AddOpenIddict.cs
new file mode 100644
index 0000000000..84e6be3fee
--- /dev/null
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/20230807654321_AddOpenIddict.cs
@@ -0,0 +1,166 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Umbraco.Cms.Persistence.EFCore.SqlServer.Migrations
+{
+ ///
+ public partial class AddOpenIddict : Migration
+ {
+ ///
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.CreateTable(
+ name: "umbracoOpenIddictApplications",
+ columns: table => new
+ {
+ Id = table.Column(type: "nvarchar(450)", nullable: false),
+ ClientId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
+ ClientSecret = table.Column(type: "nvarchar(max)", nullable: true),
+ ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ ConsentType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ DisplayName = table.Column(type: "nvarchar(max)", nullable: true),
+ DisplayNames = table.Column(type: "nvarchar(max)", nullable: true),
+ Permissions = table.Column(type: "nvarchar(max)", nullable: true),
+ PostLogoutRedirectUris = table.Column(type: "nvarchar(max)", nullable: true),
+ Properties = table.Column(type: "nvarchar(max)", nullable: true),
+ RedirectUris = table.Column(type: "nvarchar(max)", nullable: true),
+ Requirements = table.Column(type: "nvarchar(max)", nullable: true),
+ Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_umbracoOpenIddictApplications", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "umbracoOpenIddictScopes",
+ columns: table => new
+ {
+ Id = table.Column(type: "nvarchar(450)", nullable: false),
+ ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ Description = table.Column(type: "nvarchar(max)", nullable: true),
+ Descriptions = table.Column(type: "nvarchar(max)", nullable: true),
+ DisplayName = table.Column(type: "nvarchar(max)", nullable: true),
+ DisplayNames = table.Column(type: "nvarchar(max)", nullable: true),
+ Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
+ Properties = table.Column(type: "nvarchar(max)", nullable: true),
+ Resources = table.Column(type: "nvarchar(max)", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_umbracoOpenIddictScopes", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "umbracoOpenIddictAuthorizations",
+ columns: table => new
+ {
+ Id = table.Column(type: "nvarchar(450)", nullable: false),
+ ApplicationId = table.Column(type: "nvarchar(450)", nullable: true),
+ ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ CreationDate = table.Column(type: "datetime2", nullable: true),
+ Properties = table.Column(type: "nvarchar(max)", nullable: true),
+ Scopes = table.Column(type: "nvarchar(max)", nullable: true),
+ Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ Subject = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true),
+ Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_umbracoOpenIddictAuthorizations", x => x.Id);
+ table.ForeignKey(
+ name: "FK_umbracoOpenIddictAuthorizations_umbracoOpenIddictApplications_ApplicationId",
+ column: x => x.ApplicationId,
+ principalTable: "umbracoOpenIddictApplications",
+ principalColumn: "Id");
+ });
+
+ migrationBuilder.CreateTable(
+ name: "umbracoOpenIddictTokens",
+ columns: table => new
+ {
+ Id = table.Column(type: "nvarchar(450)", nullable: false),
+ ApplicationId = table.Column(type: "nvarchar(450)", nullable: true),
+ AuthorizationId = table.Column(type: "nvarchar(450)", nullable: true),
+ ConcurrencyToken = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ CreationDate = table.Column(type: "datetime2", nullable: true),
+ ExpirationDate = table.Column(type: "datetime2", nullable: true),
+ Payload = table.Column(type: "nvarchar(max)", nullable: true),
+ Properties = table.Column(type: "nvarchar(max)", nullable: true),
+ RedemptionDate = table.Column(type: "datetime2", nullable: true),
+ ReferenceId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
+ Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ Subject = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true),
+ Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_umbracoOpenIddictTokens", x => x.Id);
+ table.ForeignKey(
+ name: "FK_umbracoOpenIddictTokens_umbracoOpenIddictApplications_ApplicationId",
+ column: x => x.ApplicationId,
+ principalTable: "umbracoOpenIddictApplications",
+ principalColumn: "Id");
+ table.ForeignKey(
+ name: "FK_umbracoOpenIddictTokens_umbracoOpenIddictAuthorizations_AuthorizationId",
+ column: x => x.AuthorizationId,
+ principalTable: "umbracoOpenIddictAuthorizations",
+ principalColumn: "Id");
+ });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_umbracoOpenIddictApplications_ClientId",
+ table: "umbracoOpenIddictApplications",
+ column: "ClientId",
+ unique: true,
+ filter: "[ClientId] IS NOT NULL");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_umbracoOpenIddictAuthorizations_ApplicationId_Status_Subject_Type",
+ table: "umbracoOpenIddictAuthorizations",
+ columns: new[] { "ApplicationId", "Status", "Subject", "Type" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_umbracoOpenIddictScopes_Name",
+ table: "umbracoOpenIddictScopes",
+ column: "Name",
+ unique: true,
+ filter: "[Name] IS NOT NULL");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_umbracoOpenIddictTokens_ApplicationId_Status_Subject_Type",
+ table: "umbracoOpenIddictTokens",
+ columns: new[] { "ApplicationId", "Status", "Subject", "Type" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_umbracoOpenIddictTokens_AuthorizationId",
+ table: "umbracoOpenIddictTokens",
+ column: "AuthorizationId");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_umbracoOpenIddictTokens_ReferenceId",
+ table: "umbracoOpenIddictTokens",
+ column: "ReferenceId",
+ unique: true,
+ filter: "[ReferenceId] IS NOT NULL");
+ }
+
+ ///
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropTable(
+ name: "umbracoOpenIddictScopes");
+
+ migrationBuilder.DropTable(
+ name: "umbracoOpenIddictTokens");
+
+ migrationBuilder.DropTable(
+ name: "umbracoOpenIddictAuthorizations");
+
+ migrationBuilder.DropTable(
+ name: "umbracoOpenIddictApplications");
+ }
+ }
+}
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/UmbracoOpenIddictDbContextModelSnapshot.cs b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/UmbracoDbContextModelSnapshot.cs
similarity index 99%
rename from src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/UmbracoOpenIddictDbContextModelSnapshot.cs
rename to src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/UmbracoDbContextModelSnapshot.cs
index fcaa36348f..727f602b80 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/UmbracoOpenIddictDbContextModelSnapshot.cs
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Migrations/UmbracoDbContextModelSnapshot.cs
@@ -11,7 +11,7 @@ using Umbraco.Cms.Persistence.EFCore;
namespace Umbraco.Cms.Persistence.EFCore.SqlServer.Migrations
{
[DbContext(typeof(UmbracoDbContext))]
- partial class UmbracoOpenIddictDbContextModelSnapshot : ModelSnapshot
+ partial class UmbracoDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/SqlServerMigrationProvider.cs b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/SqlServerMigrationProvider.cs
index 45e431eb8f..bac08556a3 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/SqlServerMigrationProvider.cs
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/SqlServerMigrationProvider.cs
@@ -28,6 +28,7 @@ public class SqlServerMigrationProvider : IMigrationProvider
migration switch
{
EFCoreMigration.InitialCreate => typeof(Migrations.InitialCreate),
+ EFCoreMigration.AddOpenIddict => typeof(Migrations.AddOpenIddict),
_ => throw new ArgumentOutOfRangeException(nameof(migration), $@"Not expected migration value: {migration}")
};
}
diff --git a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj
index 6e8268dc2a..7236286419 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj
+++ b/src/Umbraco.Cms.Persistence.EFCore.SqlServer/Umbraco.Cms.Persistence.EFCore.SqlServer.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.Designer.cs b/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.Designer.cs
index 611f1c31cb..ec99f4b1ba 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.Designer.cs
+++ b/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.Designer.cs
@@ -16,243 +16,7 @@ namespace Umbraco.Cms.Persistence.EFCore.Sqlite.Migrations
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
-#pragma warning disable 612, 618
- modelBuilder.HasAnnotation("ProductVersion", "7.0.7");
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
-
- b.Property("ClientId")
- .HasMaxLength(100)
- .HasColumnType("TEXT");
-
- b.Property("ClientSecret")
- .HasColumnType("TEXT");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("ConsentType")
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("DisplayName")
- .HasColumnType("TEXT");
-
- b.Property("DisplayNames")
- .HasColumnType("TEXT");
-
- b.Property("Permissions")
- .HasColumnType("TEXT");
-
- b.Property("PostLogoutRedirectUris")
- .HasColumnType("TEXT");
-
- b.Property("Properties")
- .HasColumnType("TEXT");
-
- b.Property("RedirectUris")
- .HasColumnType("TEXT");
-
- b.Property("Requirements")
- .HasColumnType("TEXT");
-
- b.Property("Type")
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.HasIndex("ClientId")
- .IsUnique();
-
- b.ToTable("umbracoOpenIddictApplications", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
-
- b.Property("ApplicationId")
- .HasColumnType("TEXT");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("CreationDate")
- .HasColumnType("TEXT");
-
- b.Property("Properties")
- .HasColumnType("TEXT");
-
- b.Property("Scopes")
- .HasColumnType("TEXT");
-
- b.Property("Status")
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("Subject")
- .HasMaxLength(400)
- .HasColumnType("TEXT");
-
- b.Property("Type")
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.HasIndex("ApplicationId", "Status", "Subject", "Type");
-
- b.ToTable("umbracoOpenIddictAuthorizations", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreScope", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("Description")
- .HasColumnType("TEXT");
-
- b.Property("Descriptions")
- .HasColumnType("TEXT");
-
- b.Property("DisplayName")
- .HasColumnType("TEXT");
-
- b.Property("DisplayNames")
- .HasColumnType("TEXT");
-
- b.Property("Name")
- .HasMaxLength(200)
- .HasColumnType("TEXT");
-
- b.Property("Properties")
- .HasColumnType("TEXT");
-
- b.Property("Resources")
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.HasIndex("Name")
- .IsUnique();
-
- b.ToTable("umbracoOpenIddictScopes", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("TEXT");
-
- b.Property("ApplicationId")
- .HasColumnType("TEXT");
-
- b.Property("AuthorizationId")
- .HasColumnType("TEXT");
-
- b.Property("ConcurrencyToken")
- .IsConcurrencyToken()
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("CreationDate")
- .HasColumnType("TEXT");
-
- b.Property("ExpirationDate")
- .HasColumnType("TEXT");
-
- b.Property("Payload")
- .HasColumnType("TEXT");
-
- b.Property("Properties")
- .HasColumnType("TEXT");
-
- b.Property("RedemptionDate")
- .HasColumnType("TEXT");
-
- b.Property("ReferenceId")
- .HasMaxLength(100)
- .HasColumnType("TEXT");
-
- b.Property("Status")
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.Property("Subject")
- .HasMaxLength(400)
- .HasColumnType("TEXT");
-
- b.Property("Type")
- .HasMaxLength(50)
- .HasColumnType("TEXT");
-
- b.HasKey("Id");
-
- b.HasIndex("AuthorizationId");
-
- b.HasIndex("ReferenceId")
- .IsUnique();
-
- b.HasIndex("ApplicationId", "Status", "Subject", "Type");
-
- b.ToTable("umbracoOpenIddictTokens", (string)null);
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
- {
- b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
- .WithMany("Authorizations")
- .HasForeignKey("ApplicationId");
-
- b.Navigation("Application");
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
- {
- b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
- .WithMany("Tokens")
- .HasForeignKey("ApplicationId");
-
- b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", "Authorization")
- .WithMany("Tokens")
- .HasForeignKey("AuthorizationId");
-
- b.Navigation("Application");
-
- b.Navigation("Authorization");
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
- {
- b.Navigation("Authorizations");
-
- b.Navigation("Tokens");
- });
-
- modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
- {
- b.Navigation("Tokens");
- });
-#pragma warning restore 612, 618
}
}
}
diff --git a/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.cs b/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.cs
index ea1b21ac3f..fcffe76bc8 100644
--- a/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.cs
+++ b/src/Umbraco.Cms.Persistence.EFCore.Sqlite/Migrations/20230622183638_InitialCreate.cs
@@ -11,153 +11,13 @@ namespace Umbraco.Cms.Persistence.EFCore.Sqlite.Migrations
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictApplications",
- columns: table => new
- {
- Id = table.Column(type: "TEXT", nullable: false),
- ClientId = table.Column(type: "TEXT", maxLength: 100, nullable: true),
- ClientSecret = table.Column(type: "TEXT", nullable: true),
- ConcurrencyToken = table.Column(type: "TEXT", maxLength: 50, nullable: true),
- ConsentType = table.Column(type: "TEXT", maxLength: 50, nullable: true),
- DisplayName = table.Column(type: "TEXT", nullable: true),
- DisplayNames = table.Column(type: "TEXT", nullable: true),
- Permissions = table.Column(type: "TEXT", nullable: true),
- PostLogoutRedirectUris = table.Column(type: "TEXT", nullable: true),
- Properties = table.Column(type: "TEXT", nullable: true),
- RedirectUris = table.Column(type: "TEXT", nullable: true),
- Requirements = table.Column(type: "TEXT", nullable: true),
- Type = table.Column(type: "TEXT", maxLength: 50, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictApplications", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictScopes",
- columns: table => new
- {
- Id = table.Column(type: "TEXT", nullable: false),
- ConcurrencyToken = table.Column(type: "TEXT", maxLength: 50, nullable: true),
- Description = table.Column(type: "TEXT", nullable: true),
- Descriptions = table.Column(type: "TEXT", nullable: true),
- DisplayName = table.Column(type: "TEXT", nullable: true),
- DisplayNames = table.Column(type: "TEXT", nullable: true),
- Name = table.Column(type: "TEXT", maxLength: 200, nullable: true),
- Properties = table.Column(type: "TEXT", nullable: true),
- Resources = table.Column(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictScopes", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictAuthorizations",
- columns: table => new
- {
- Id = table.Column(type: "TEXT", nullable: false),
- ApplicationId = table.Column(type: "TEXT", nullable: true),
- ConcurrencyToken = table.Column(type: "TEXT", maxLength: 50, nullable: true),
- CreationDate = table.Column(type: "TEXT", nullable: true),
- Properties = table.Column(type: "TEXT", nullable: true),
- Scopes = table.Column(type: "TEXT", nullable: true),
- Status = table.Column(type: "TEXT", maxLength: 50, nullable: true),
- Subject = table.Column(type: "TEXT", maxLength: 400, nullable: true),
- Type = table.Column(type: "TEXT", maxLength: 50, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_umbracoOpenIddictAuthorizations", x => x.Id);
- table.ForeignKey(
- name: "FK_umbracoOpenIddictAuthorizations_umbracoOpenIddictApplications_ApplicationId",
- column: x => x.ApplicationId,
- principalTable: "umbracoOpenIddictApplications",
- principalColumn: "Id");
- });
-
- migrationBuilder.CreateTable(
- name: "umbracoOpenIddictTokens",
- columns: table => new
- {
- Id = table.Column(type: "TEXT", nullable: false),
- ApplicationId = table.Column(type: "TEXT", nullable: true),
- AuthorizationId = table.Column