Skip to content

Commit

Permalink
Added SQL migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
ndobb committed Sep 17, 2020
1 parent a43a7e7 commit af099a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/db/build/LeafDB.Data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -495,4 +495,4 @@ INSERT [auth].[Constraint] ([Id], [Type]) VALUES (1, N'User')
INSERT [auth].[Constraint] ([Id], [Type]) VALUES (2, N'Group')
SET IDENTITY_INSERT [auth].[Constraint] OFF
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)')
INSERT [ref].[Version] ([Lock], [Version]) VALUES (N'X', N'3.7.2')
INSERT [ref].[Version] ([Lock], [Version]) VALUES (N'X', N'3.8.0')
2 changes: 1 addition & 1 deletion src/db/build/LeafDB.Init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ SELECT
,[SecondaryColor] = 'rgb(183, 165, 122)'

INSERT INTO [ref].[Version] (Lock, [Version])
SELECT 'X', N'3.7.2';
SELECT 'X', N'3.8.0';
5 changes: 5 additions & 0 deletions src/db/migration/3.7.2__3.8.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
* No database changes, just update version.
*/
UPDATE ref.[Version]
SET [Version] = '3.8.0'
2 changes: 1 addition & 1 deletion src/server/API/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"Connection": "LEAF_CLIN_DB",
"DefaultTimeout": 180,
"Cohort": {
"QueryStrategy": "PARALLEL",
"QueryStrategy": "CTE",
"MaxParallelThreads": 5
}
}
Expand Down

0 comments on commit af099a0

Please sign in to comment.