Skip to content

Commit 68f66fd

Browse files
committed
TD-4373-Allow ppsx file type
1 parent 1657a06 commit 68f66fd

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

WebAPI/LearningHub.Nhs.Database/LearningHub.Nhs.Database.sqlproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@
524524
<Build Include="Stored Procedures\Resources\GetAchievedCertificatedResourcesWithOptionalPagination.sql" />
525525
<Build Include="Stored Procedures\Hierarchy\GetCatalogues.sql" />
526526
<Build Include="Stored Procedures\Hierarchy\GetCataloguesCount.sql" />
527+
<None Include="Scripts\Post-Deploy\Scripts\PPSXFileType.sql" />
527528
</ItemGroup>
528529
<ItemGroup>
529530
<None Include="Scripts\Pre-Deploy\Scripts\Card5766_AuthorTableChanges.PreDeployment.sql" />
@@ -594,4 +595,4 @@
594595
<ItemGroup>
595596
<None Include="Scripts\Post-Deploy\Scripts\ElfhExternalSystemsImport.sql" />
596597
</ItemGroup>
597-
</Project>
598+
</Project>

WebAPI/LearningHub.Nhs.Database/Scripts/Post-Deploy/Script.PostDeployment.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ UPDATE [resources].[ResourceVersion] SET CertificateEnabled = 0 WHERE VersionSta
8181
:r .\Scripts\InitialiseDataForEmailTemplates.sql
8282
:r .\Scripts\TD-2929_ActivityStatusUpdates.sql
8383
:r .\Scripts\InitialiseDataForEmailTemplates.sql
84-
:r .\Scripts\AttributeData.sql
84+
:r .\Scripts\AttributeData.sql
85+
:r .\Scripts\PPSXFileType.sql
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
IF NOT EXISTS(SELECT Id FROM [resources].[FileType] where Extension ='ppsx')
2+
BEGIN
3+
INSERT INTO [resources].[FileType]
4+
(Id,
5+
[DefaultResourceTypeId]
6+
,[Name]
7+
,[Description]
8+
,[Extension]
9+
,[Icon]
10+
,[NotAllowed]
11+
,[Deleted]
12+
,[CreateUserId]
13+
,[CreateDate]
14+
,[AmendUserId]
15+
,[AmendDate])
16+
VALUES
17+
(70,
18+
9
19+
,'PowerPoint Open XML Slide Show'
20+
,'PowerPoint Open XML Slide Show'
21+
,'ppsx'
22+
,'a-mppoint-icon.svg'
23+
,0
24+
,0
25+
,57541
26+
,SYSDATETIMEOFFSET()
27+
,57541
28+
,SYSDATETIMEOFFSET())
29+
END
30+
GO

0 commit comments

Comments
 (0)