Skip to content

Commit af099a0

Browse files
committed
Added SQL migration script
1 parent a43a7e7 commit af099a0

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/db/build/LeafDB.Data.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,4 +495,4 @@ INSERT [auth].[Constraint] ([Id], [Type]) VALUES (1, N'User')
495495
INSERT [auth].[Constraint] ([Id], [Type]) VALUES (2, N'Group')
496496
SET IDENTITY_INSERT [auth].[Constraint] OFF
497497
INSERT [network].[Identity] ([Lock], [Name], [Abbreviation], [Description], [TotalPatients], [Latitude], [Longitude], [PrimaryColor], [SecondaryColor]) VALUES (N'X', N'University of Washington', N'UW', N'UW Medicine is the most comprehensive integrated health system in the Puget Sound region, comprising 4 hospitals and hundreds of clinics', 4600000, CAST(47.6062 AS Decimal(7, 4)), CAST(-122.3321 AS Decimal(7, 4)), N'rgb(75, 46, 131)', N'rgb(183, 165, 122)')
498-
INSERT [ref].[Version] ([Lock], [Version]) VALUES (N'X', N'3.7.2')
498+
INSERT [ref].[Version] ([Lock], [Version]) VALUES (N'X', N'3.8.0')

src/db/build/LeafDB.Init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ SELECT
3939
,[SecondaryColor] = 'rgb(183, 165, 122)'
4040

4141
INSERT INTO [ref].[Version] (Lock, [Version])
42-
SELECT 'X', N'3.7.2';
42+
SELECT 'X', N'3.8.0';

src/db/migration/3.7.2__3.8.0.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* No database changes, just update version.
3+
*/
4+
UPDATE ref.[Version]
5+
SET [Version] = '3.8.0'

src/server/API/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Connection": "LEAF_CLIN_DB",
1818
"DefaultTimeout": 180,
1919
"Cohort": {
20-
"QueryStrategy": "PARALLEL",
20+
"QueryStrategy": "CTE",
2121
"MaxParallelThreads": 5
2222
}
2323
}

0 commit comments

Comments
 (0)