Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/DatabaseSeeding/Scripts/0007_Locations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ BEGIN
(129, N'Chatham', N'con_24046', '01 Aug 2024', N'2029-03-31 23:59:59.0000000', null, 2, 5, '01 Aug 2024', N'2a9b3450-1feb-4be3-ab94-24e64cd34829'),
(130, N'Southampton', N'con_24046', '01 Aug 2024', N'2029-03-31 23:59:59.0000000', 129, 2, 6, '01 Aug 2024', N'2a9b3450-1feb-4be3-ab94-24e64cd34829'),
(131, N'Portsmouth', N'con_24046', '01 Aug 2024', N'2029-03-31 23:59:59.0000000', 129, 2, 6, '01 Aug 2024', N'2a9b3450-1feb-4be3-ab94-24e64cd34829'),
(132, N'HMP Leicester', N'con_24042', '01 Aug 2024', N'2029-03-31 23:59:59.0000000', null, 0, 2, '01 Aug 2024', N'2a9b3450-1feb-4be3-ab94-24e64cd34829');
(132, N'HMP Leicester', N'con_24042', '01 Aug 2024', N'2029-03-31 23:59:59.0000000', null, 0, 2, '01 Aug 2024', N'2a9b3450-1feb-4be3-ab94-24e64cd34829'),
(133, N'HMP Wormwood Scrubs', N'con_24044', '12 Jun 2026', N'2029-03-31 23:59:59.0000000', null, 0, 1, '12 Jun 2026', N'2a9b3450-1feb-4be3-ab94-24e64cd34829'),
(134, N'HMP Erlestoke', N'con_24045', '12 Jun 2026', N'2029-03-31 23:59:59.0000000', null, 0, 2, '12 Jun 2026', N'2a9b3450-1feb-4be3-ab94-24e64cd34829');

SET IDENTITY_INSERT [Configuration].[Location] OFF;
END;
4 changes: 2 additions & 2 deletions src/DatabaseSeeding/Scripts/0008_TenantLocations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ BEGIN
'1.1.6.1.1.' as [TenantId]
from [Configuration].[Location]
where [Name] in ( 'HMP Portland', 'HMP Exeter', 'HMP Bristol', 'HMP Dartmoor', 'HMP Channings Wood', 'HMP Leyhill',
'HMP Guys Marsh', 'HMP The Verne', 'HMP Eastwood Park', 'Bristol', 'Plymouth', 'South West Community'
'HMP Guys Marsh', 'HMP The Verne', 'HMP Eastwood Park', 'HMP Erlestoke', 'Bristol', 'Plymouth', 'South West Community'
)
union
select Id as [LocationId],
'1.1.5.1.1.' as [TenantId]
from [Configuration].[Location]
where [Name] in ( 'HMP High Down', 'HMP Wandsworth', 'HMP Thameside', 'HMP Pentonville', 'HMP Brixton', 'HMP Feltham',
'HMP Isis', 'HMP Bronzefield', 'HMP Downview', 'Croydon', 'Lambeth', 'Lewisham', 'London Community'
'HMP Isis', 'HMP Bronzefield', 'HMP Downview', 'HMP Wormwood Scrubs', 'Croydon', 'Lambeth', 'Lewisham', 'London Community'
)
union
select Id as [LocationId],
Expand Down
4 changes: 2 additions & 2 deletions src/DatabaseSeeding/Scripts/0009_LocationMapping.sql
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ BEGIN
(N'DTV', N'Probation', N'Durham and Tees Valley', N'North East Community', 91),
(N'DVI', N'Prison', N'Dover', N'South East', null),
(N'DWI', N'Prison', N'Downview', N'South East', 67),
(N'EEI', N'Prison', N'Erlestoke', N'South West', null),
(N'EEI', N'Prison', N'Erlestoke', N'South West', 134),
(N'EHI', N'Prison', N'Standford Hill', N'South East', 85),
(N'ESI', N'Prison', N'East Sutton Park', N'South East', 89),
(N'ESX', N'Probation', N'Essex', N'East Of England Community', 95),
Expand Down Expand Up @@ -227,7 +227,7 @@ BEGIN
(N'WNI', N'Prison', N'Werrington', N'West Midlands', null),
(N'WPT', N'Probation', N'Wales Probation Trust', N'Unknown', null),
(N'WRI', N'Prison', N'Whitemoor', N'East of England', null),
(N'WSI', N'Prison', N'Wormwood Scrubs', N'London', null),
(N'WSI', N'Prison', N'Wormwood Scrubs', N'London', 133),
(N'WTI', N'Prison', N'Whatton', N'East Midlands', 47),
(N'WTS', N'Probation', N'Wiltshire', N'South West Community', 97),
(N'WWI', N'Prison', N'Wandsworth', N'London', 60),
Expand Down