Skip to content

Commit

Permalink
Version upgrade for OpenIddict.EntityFrameworkCore and Microsoft.Enti…
Browse files Browse the repository at this point in the history
…tyFrameworkCore.
  • Loading branch information
DavidJGapCR committed Sep 23, 2024
1 parent 7cdee20 commit 4c63751
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.

IF EXISTS (SELECT 1 FROM [INFORMATION_SCHEMA].[TABLES] WHERE TABLE_SCHEMA = 'adminapi' and TABLE_NAME = 'Applications')
BEGIN
ALTER TABLE adminapi.Applications
ADD
[ApplicationType] NVARCHAR(MAX) NULL,
[JsonWebKeySet] NVARCHAR(MAX) NULL,
[Settings] NVARCHAR(MAX) NULL;
END

IF EXISTS (SELECT 1 FROM [INFORMATION_SCHEMA].[TABLES] WHERE TABLE_SCHEMA = 'adminapi' and TABLE_NAME = 'Applications')
BEGIN
EXEC sp_rename 'adminapi.Applications.Type', 'ClientType', 'COLUMN';
END
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.

ALTER TABLE adminapi.Applications
ADD COLUMN
ApplicationType VARCHAR NULL,
ADD COLUMN
JsonWebKeySet VARCHAR NULL,
ADD COLUMN
Settings VARCHAR NULL;


ALTER TABLE adminapi.Applications
RENAME COLUMN Type TO ClientType;
4 changes: 2 additions & 2 deletions Application/EdFi.Ods.AdminApi/EdFi.Ods.AdminApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
<PackageReference Include="Npgsql" Version="8.0.3" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
<PackageReference Include="OpenIddict.AspNetCore" Version="4.4.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="4.4.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="5.7.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.5.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
Expand Down

0 comments on commit 4c63751

Please sign in to comment.