diff --git a/WebAPI/LearningHub.Nhs.Database/Scripts/Post-Deploy/Scripts/TD-5358.sql b/WebAPI/LearningHub.Nhs.Database/Scripts/Post-Deploy/Scripts/TD-5358.sql new file mode 100644 index 000000000..cc0289efb --- /dev/null +++ b/WebAPI/LearningHub.Nhs.Database/Scripts/Post-Deploy/Scripts/TD-5358.sql @@ -0,0 +1,17 @@ + +BEGIN +--Level 1 path +update [resources].ResourceReference set Deleted=0 where NodePathId=3009 and ResourceId in (10494,4802,10520) +update [hierarchy].[NodeResource] set VersionStatusId=2 where NodeId=1948 and ResourceId in (10494,4802,10520) +update [hierarchy].[NodeResourceLookup] set Deleted=0 where NodeId=1948 and ResourceId in (10494,4802,10520) + + + + + +--Work in progress path +update [hierarchy].[NodeResource] set VersionStatusId=2 where NodeId=1914 and ResourceId in (16717,16718,4085,4091,10522,4086,10479,10491,10496,10481,10523,10519,4083,4087,10483,4079,4093,10510,10485,10484,10482,10518,10500,10515,10511,10508,10521,10493,10497,4089,4090,10480,4084,4088,4080,4081,10501,10517,10503,10476,10504,10502,4082,10486,10488,10478,4096,10514,10507,4076,4094,10499,10509,4180,4077,4092,14736,14631,14630,14592,14593,14737,14738,14922,14923,14924,14966,14967,14969,14968,17439,14970,15000,15001,14596,15428,14595,14629,7646,7645,7644,7640,7643,7641,7647,15129,11221,5455,10822,4919,10567,6552,5453,9622,9621,4298) +update [resources].[ResourceReference] set Deleted = 0 where NodepathId=1781 and ResourceId in (16717,16718,4085,4091,10522,4086,10479,10491,10496,10481,10523,10519,4083,4087,10483,4079,4093,10510,10485,10484,10482,10518,10500,10515,10511,10508,10521,10493,10497,4089,4090,10480,4084,4088,4080,4081,10501,10517,10503,10476,10504,10502,4082,10486,10488,10478,4096,10514,10507,4076,4094,10499,10509,4180,4077,4092,14736,14631,14630,14592,14593,14737,14738,14922,14923,14924,14966,14967,14969,14968,17439,14970,15000,15001,14596,15428,14595,14629,7646,7645,7644,7640,7643,7641,7647,15129,11221,5455,10822,4919,10567,6552,5453,9622,9621,4298) +update [hierarchy].[NodeResourceLookup] set Deleted=0 where NodeId=1914 and ResourceId in (16717,16718,4085,4091,10522,4086,10479,10491,10496,10481,10523,10519,4083,4087,10483,4079,4093,10510,10485,10484,10482,10518,10500,10515,10511,10508,10521,10493,10497,4089,4090,10480,4084,4088,4080,4081,10501,10517,10503,10476,10504,10502,4082,10486,10488,10478,4096,10514,10507,4076,4094,10499,10509,4180,4077,4092,14736,14631,14630,14592,14593,14737,14738,14922,14923,14924,14966,14967,14969,14968,17439,14970,15000,15001,14596,15428,14595,14629,7646,7645,7644,7640,7643,7641,7647,15129,11221,5455,10822,4919,10567,6552,5453,9622,9621,4298) + +END