From af099a0c9142c3103df56e08b18e10179a7c3781 Mon Sep 17 00:00:00 2001 From: Nic Dobbins Date: Thu, 17 Sep 2020 14:58:32 -0700 Subject: [PATCH] Added SQL migration script --- src/db/build/LeafDB.Data.sql | 2 +- src/db/build/LeafDB.Init.sql | 2 +- src/db/migration/3.7.2__3.8.0.sql | 5 +++++ src/server/API/appsettings.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 src/db/migration/3.7.2__3.8.0.sql diff --git a/src/db/build/LeafDB.Data.sql b/src/db/build/LeafDB.Data.sql index 26a7e85a1..c14a0de33 100644 --- a/src/db/build/LeafDB.Data.sql +++ b/src/db/build/LeafDB.Data.sql @@ -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') diff --git a/src/db/build/LeafDB.Init.sql b/src/db/build/LeafDB.Init.sql index fa6451453..d882b3b2a 100644 --- a/src/db/build/LeafDB.Init.sql +++ b/src/db/build/LeafDB.Init.sql @@ -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'; diff --git a/src/db/migration/3.7.2__3.8.0.sql b/src/db/migration/3.7.2__3.8.0.sql new file mode 100644 index 000000000..652ceb874 --- /dev/null +++ b/src/db/migration/3.7.2__3.8.0.sql @@ -0,0 +1,5 @@ +/* + * No database changes, just update version. + */ +UPDATE ref.[Version] +SET [Version] = '3.8.0' \ No newline at end of file diff --git a/src/server/API/appsettings.json b/src/server/API/appsettings.json index 10ecc6a25..f56a027a7 100644 --- a/src/server/API/appsettings.json +++ b/src/server/API/appsettings.json @@ -17,7 +17,7 @@ "Connection": "LEAF_CLIN_DB", "DefaultTimeout": 180, "Cohort": { - "QueryStrategy": "PARALLEL", + "QueryStrategy": "CTE", "MaxParallelThreads": 5 } }