From e223309a644e9a3d39a7d5613fbce75bdfd5403a Mon Sep 17 00:00:00 2001 From: jesscall Date: Thu, 18 Jun 2020 15:30:46 -0400 Subject: [PATCH] camille's suggestion --- ...0_06_16_Add_Date_Format_to_ConfigSettings_DataType.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SQL/New_patches/2020_06_16_Add_Date_Format_to_ConfigSettings_DataType.sql b/SQL/New_patches/2020_06_16_Add_Date_Format_to_ConfigSettings_DataType.sql index 6604ea338a5..21cf02fc01e 100644 --- a/SQL/New_patches/2020_06_16_Add_Date_Format_to_ConfigSettings_DataType.sql +++ b/SQL/New_patches/2020_06_16_Add_Date_Format_to_ConfigSettings_DataType.sql @@ -12,17 +12,17 @@ UPDATE ConfigSettings -- Convert old date casing combos to supported format UPDATE Config SET Value='Ymd' - WHERE Value IN ('YMD', 'YMd', 'YmD', 'yMD', 'yMd', 'ymD', 'ymd') + WHERE LOWER(Value)='ymd' AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dobFormat'); UPDATE Config SET Value='Ymd' - WHERE Value IN ('YMD', 'YMd', 'YmD', 'yMD', 'yMd', 'ymD', 'ymd') + WHERE LOWER(Value)='ymd' AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dodFormat'); UPDATE Config SET Value='Ym' - WHERE Value IN ('YM', 'ym', 'yM') + WHERE LOWER(Value)='ym' AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dobFormat'); UPDATE Config SET Value='Ym' - WHERE Value IN ('YM', 'ym', 'yM') + WHERE LOWER(Value)='ym' AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dodFormat');