Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CREATE TABLE "AuditEntries" (
CREATE INDEX "IX_AuditEntries_When" ON "AuditEntries" ("When");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20181220155915_InitalPostgreSqlAuditDbMigration', '10.0.8');
VALUES ('20181220155915_InitalPostgreSqlAuditDbMigration', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ CREATE INDEX "IX_IdentityClaims_IdentityResourceId" ON "IdentityClaims" ("Identi
CREATE UNIQUE INDEX "IX_IdentityResources_Name" ON "IdentityResources" ("Name");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171026082702_InitialPostgreSqlConfigurationDbMigration', '10.0.8');
VALUES ('20171026082702_InitialPostgreSqlConfigurationDbMigration', '10.0.11');

COMMIT;

START TRANSACTION;
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171122163837_UserSearchOptimizationConfigurationDbMigration', '10.0.8');
VALUES ('20171122163837_UserSearchOptimizationConfigurationDbMigration', '10.0.11');

COMMIT;

Expand Down Expand Up @@ -302,13 +302,13 @@ CREATE INDEX "IX_ApiProperties_ApiResourceId" ON "ApiProperties" ("ApiResourceId
CREATE INDEX "IX_IdentityProperties_IdentityResourceId" ON "IdentityProperties" ("IdentityResourceId");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20181112154834_IdentityServer2.3PostgreSqlConfigurationDbMigration', '10.0.8');
VALUES ('20181112154834_IdentityServer2.3PostgreSqlConfigurationDbMigration', '10.0.11');

COMMIT;

START TRANSACTION;
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20200702113308_UpdateIdColumnsPostgreSqlConfigurationDbMigration', '10.0.8');
VALUES ('20200702113308_UpdateIdColumnsPostgreSqlConfigurationDbMigration', '10.0.11');

COMMIT;

Expand Down Expand Up @@ -560,15 +560,15 @@ DROP TABLE "IdentityClaims";
DROP TABLE "IdentityProperties";

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20200702113402_V3toV4PostgreSqlConfigurationDbMigration', '10.0.8');
VALUES ('20200702113402_V3toV4PostgreSqlConfigurationDbMigration', '10.0.11');

COMMIT;

START TRANSACTION;
ALTER TABLE "ApiResources" ADD "RequireResourceIndicator" boolean NOT NULL DEFAULT FALSE;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20210106163812_DuendePostgreSqlConfigurationMigration', '10.0.8');
VALUES ('20210106163812_DuendePostgreSqlConfigurationMigration', '10.0.11');

COMMIT;

Expand All @@ -584,7 +584,7 @@ CREATE TABLE "IdentityProviders" (
);

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20210602105114_IdentityProvidersPostgreSqlConfigurationMigration', '10.0.8');
VALUES ('20210602105114_IdentityProvidersPostgreSqlConfigurationMigration', '10.0.11');

COMMIT;

Expand Down Expand Up @@ -700,15 +700,15 @@ CREATE UNIQUE INDEX "IX_ApiResourceProperties_ApiResourceId_Key" ON "ApiResource
CREATE UNIQUE INDEX "IX_ApiResourceClaims_ApiResourceId_Type" ON "ApiResourceClaims" ("ApiResourceId", "Type");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220104130806_DuendeV6PostgreSqlConfigurationMigration', '10.0.8');
VALUES ('20220104130806_DuendeV6PostgreSqlConfigurationMigration', '10.0.11');

COMMIT;

START TRANSACTION;
ALTER TABLE "Clients" ADD "CoordinateLifetimeWithUserSession" boolean;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220608093254_Duende61ConfigurationUpdate', '10.0.8');
VALUES ('20220608093254_Duende61ConfigurationUpdate', '10.0.11');

COMMIT;

Expand All @@ -722,7 +722,7 @@ ALTER TABLE "Clients" ADD "InitiateLoginUri" character varying(2000);
ALTER TABLE "Clients" ADD "RequireDPoP" boolean NOT NULL DEFAULT FALSE;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20230620154509_Duende63ConfigurationUpdate', '10.0.8');
VALUES ('20230620154509_Duende63ConfigurationUpdate', '10.0.11');

COMMIT;

Expand All @@ -732,7 +732,7 @@ ALTER TABLE "Clients" ADD "PushedAuthorizationLifetime" integer;
ALTER TABLE "Clients" ADD "RequirePushedAuthorization" boolean NOT NULL DEFAULT FALSE;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20240105112808_DuendeV7PostgreSqlConfigurationMigration', '10.0.8');
VALUES ('20240105112808_DuendeV7PostgreSqlConfigurationMigration', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
-- This set of migrations are dependent on Configuration tables from IdentityServer already existing run ./Configuration.sql script first

CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
Expand Down Expand Up @@ -46,13 +48,13 @@ CREATE UNIQUE INDEX "IdentityNameIndex" ON "ExtendedIdentityResources" ("Identit
CREATE UNIQUE INDEX "IdentityResourceNameIndex" ON "ExtendedIdentityResources" ("NormalizedName");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171026082855_InitialPostgreSqlExtendedConfigurationDbMigration', '10.0.8');
VALUES ('20171026082855_InitialPostgreSqlExtendedConfigurationDbMigration', '10.0.11');

COMMIT;

START TRANSACTION;
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171122163921_UserSearchOptimizationExtendedConfigurationDbMigration', '10.0.8');
VALUES ('20171122163921_UserSearchOptimizationExtendedConfigurationDbMigration', '10.0.11');

COMMIT;

Expand All @@ -64,7 +66,7 @@ CREATE TABLE "ConfigurationEntries" (
);

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20180724143733_ConfigurationEntries', '10.0.8');
VALUES ('20180724143733_ConfigurationEntries', '10.0.11');

COMMIT;

Expand All @@ -85,15 +87,15 @@ UPDATE "IdentityResources"
WHERE "IdentityResources"."Name" = "ExtendedIdentityResources"."IdentityResourceName";

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20181205165028_ExtendedDataMigration2.3', '10.0.8');
VALUES ('20181205165028_ExtendedDataMigration2.3', '10.0.11');

COMMIT;

START TRANSACTION;
ALTER TABLE "ExtendedClients" ADD "ClientType" integer;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20190401105052_ClientType', '10.0.8');
VALUES ('20190401105052_ClientType', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ CREATE INDEX "EmailIndex" ON "AspNetUsers" ("NormalizedEmail");
CREATE UNIQUE INDEX "UserNameIndex" ON "AspNetUsers" ("NormalizedUserName");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171026081544_InitialPostgreSqlIdentityDbMigration', '10.0.8');
VALUES ('20171026081544_InitialPostgreSqlIdentityDbMigration', '10.0.11');

COMMIT;

Expand All @@ -136,7 +136,7 @@ CREATE INDEX "CountIndex" ON "AspNetUsers" ("IsBlocked", "IsDeleted");
CREATE INDEX "CountIndexReversed" ON "AspNetUsers" ("IsDeleted", "IsBlocked");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171122162832_UserSearchOptimizationMigration', '10.0.8');
VALUES ('20171122162832_UserSearchOptimizationMigration', '10.0.11');

COMMIT;

Expand All @@ -149,15 +149,15 @@ CREATE TABLE "EnumClaimTypeAllowedValues" (
);

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20210430142540_EnumeratedClaimTypeMigration', '10.0.8');
VALUES ('20210430142540_EnumeratedClaimTypeMigration', '10.0.11');

COMMIT;

START TRANSACTION;
ALTER TABLE "AspNetClaimTypes" ADD "DisplayName" text;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220112114931_ClaimTypeDisplayNameMigration', '10.0.8');
VALUES ('20220112114931_ClaimTypeDisplayNameMigration', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ CREATE TABLE "PersistedGrants" (
CREATE INDEX "IX_PersistedGrants_SubjectId_ClientId_Type" ON "PersistedGrants" ("SubjectId", "ClientId", "Type");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171026082436_InitialPostgreSqlOperationalDbMigration', '10.0.8');
VALUES ('20171026082436_InitialPostgreSqlOperationalDbMigration', '10.0.11');

COMMIT;

START TRANSACTION;
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20171122163955_UserSearchOptimizationOperationalDbMigration', '10.0.8');
VALUES ('20171122163955_UserSearchOptimizationOperationalDbMigration', '10.0.11');

COMMIT;

Expand All @@ -46,7 +46,7 @@ CREATE UNIQUE INDEX "IX_DeviceCodes_DeviceCode" ON "DeviceCodes" ("DeviceCode");
CREATE UNIQUE INDEX "IX_DeviceCodes_UserCode" ON "DeviceCodes" ("UserCode");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20181112154906_IdentityServer2.3PostgreSqlOperationalDbMigration', '10.0.8');
VALUES ('20181112154906_IdentityServer2.3PostgreSqlOperationalDbMigration', '10.0.11');

COMMIT;

Expand Down Expand Up @@ -77,7 +77,7 @@ ALTER TABLE "PersistedGrants"
CREATE INDEX "IX_PersistedGrants_SubjectId_SessionId_Type" ON "PersistedGrants" ("SubjectId", "SessionId", "Type");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20200702113344_V3toV4PostgreSqlOperationalDbMigration', '10.0.8');
VALUES ('20200702113344_V3toV4PostgreSqlOperationalDbMigration', '10.0.11');

COMMIT;

Expand All @@ -97,15 +97,15 @@ CREATE TABLE "Keys" (
CREATE INDEX "IX_Keys_Use" ON "Keys" ("Use");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20210106150433_DuendePostgreSqlOperationalMigration', '10.0.8');
VALUES ('20210106150433_DuendePostgreSqlOperationalMigration', '10.0.11');

COMMIT;

START TRANSACTION;
CREATE INDEX "IX_PersistedGrants_ConsumedTime" ON "PersistedGrants" ("ConsumedTime");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20210602110147_PersistedGrantConsumeTimePostgreSqlOperationalMigration', '10.0.8');
VALUES ('20210602110147_PersistedGrantConsumeTimePostgreSqlOperationalMigration', '10.0.11');

COMMIT;

Expand Down Expand Up @@ -157,7 +157,7 @@ CREATE INDEX "IX_ServerSideSessions_SessionId" ON "ServerSideSessions" ("Session
CREATE INDEX "IX_ServerSideSessions_SubjectId" ON "ServerSideSessions" ("SubjectId");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220608092054_Duende61Update', '10.0.8');
VALUES ('20220608092054_Duende61Update', '10.0.11');

COMMIT;

Expand All @@ -173,7 +173,7 @@ CREATE TABLE "PushedAuthorizationRequests" (
);

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20240108113635_DuendeV7PostgreSqlOperationalMigration', '10.0.8');
VALUES ('20240108113635_DuendeV7PostgreSqlOperationalMigration', '10.0.11');

COMMIT;

Expand All @@ -192,7 +192,7 @@ CREATE INDEX "IX_PushedAuthorizationRequests_ExpiresAtUtc" ON "PushedAuthorizati
CREATE UNIQUE INDEX "IX_PushedAuthorizationRequests_ReferenceValueHash" ON "PushedAuthorizationRequests" ("ReferenceValueHash");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20250121150607_DuendeV7.1PostgreSqlOperationalMigration', '10.0.8');
VALUES ('20250121150607_DuendeV7.1PostgreSqlOperationalMigration', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE "SamlArtifacts" (
CREATE INDEX "IX_SamlArtifacts_Expiration" ON "SamlArtifacts" ("Expiration");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220114164545_PostgreSqlSamlArtifactInitialMigration', '10.0.8');
VALUES ('20220114164545_PostgreSqlSamlArtifactInitialMigration', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ CREATE INDEX "IX_ServiceProviderSignCertificates_ServiceProviderId" ON "ServiceP
CREATE INDEX "IX_ServiceProviderSingleLogoutServices_ServiceProviderId" ON "ServiceProviderSingleLogoutServices" ("ServiceProviderId");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20190305133319_PostgreSqlSaml2PInitial', '10.0.8');
VALUES ('20190305133319_PostgreSqlSaml2PInitial', '10.0.11');

COMMIT;

START TRANSACTION;
ALTER TABLE "ServiceProviders" ADD "AllowIdpInitiatedSso" boolean NOT NULL DEFAULT FALSE;

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20200225104719_Added AllowIdpInitiatedSso', '10.0.8');
VALUES ('20200225104719_Added AllowIdpInitiatedSso', '10.0.11');

COMMIT;

Expand All @@ -83,7 +83,7 @@ ALTER TABLE "ServiceProviders" ADD "RequireAuthenticationRequestsSigned" boolean
ALTER TABLE "ServiceProviders" RENAME COLUMN "RequireSamlRequestDestination" TO "RequireSamlMessageDestination";

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20200914074950_RskSamlV3', '10.0.8');
VALUES ('20200914074950_RskSamlV3', '10.0.11');

COMMIT;

Expand All @@ -110,7 +110,7 @@ CREATE TABLE "ServiceProviderArtifactResolutionServices" (
CREATE INDEX "IX_ServiceProviderArtifactResolutionServices_ServiceProviderId" ON "ServiceProviderArtifactResolutionServices" ("ServiceProviderId");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220128115407_RskSamlPackageUpdate', '10.0.8');
VALUES ('20220128115407_RskSamlPackageUpdate', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CREATE UNIQUE INDEX "IX_RelyingParties_Realm" ON "RelyingParties" ("Realm");
CREATE INDEX "IX_RelyingPartyClaimMappings_RelyingPartyId" ON "RelyingPartyClaimMappings" ("RelyingPartyId");

INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20190305133422_PostgreSqlWsfederationInitial', '10.0.8');
VALUES ('20190305133422_PostgreSqlWsfederationInitial', '10.0.11');

COMMIT;

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CREATE TABLE [AuditEntries] (
CREATE INDEX [IX_AuditEntries_When] ON [AuditEntries] ([When]);

INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'20181220155759_InitalSqlServerAuditDbMigration', N'10.0.8');
VALUES (N'20181220155759_InitalSqlServerAuditDbMigration', N'10.0.11');

COMMIT;
GO
Expand Down
Loading