Skip to content

Commit 45d8e65

Browse files
authored
Merge pull request #613 from TechnologyEnhancedLearning/Develop/Fixes/LH-TD-4373-Allow-ppsx-file-types
TD-4373-Allow .ppsx file types
2 parents 5d2a1a1 + 7abe294 commit 45d8e65

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@
550550
<Build Include="Stored Procedures\Hierarchy\HierarchyNewResourceReferenceForReferedCatalogue.sql" />
551551
<Build Include="Stored Procedures\Hierarchy\HierarchyEditCreateNodeReference.sql" />
552552
<Build Include="Stored Procedures\Hierarchy\HierarchyEditCreateResourceReference.sql" />
553+
<None Include="Scripts\Post-Deploy\Scripts\PPSXFileType.sql" />
553554
</ItemGroup>
554555
<ItemGroup>
555556
<None Include="Scripts\Pre-Deploy\Scripts\Card5766_AuthorTableChanges.PreDeployment.sql" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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
31+

0 commit comments

Comments
 (0)