Skip to content

Commit

Permalink
Integrating Rida's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jesscall committed Jun 18, 2020
1 parent a286cb1 commit 75f3ba7
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,21 @@ UPDATE ConfigSettings

-- Update DataType of dodFormat
UPDATE ConfigSettings
SET DataType='date_format' WHERE Name='dodFormat';
SET DataType='date_format' WHERE Name='dodFormat';

-- Convert old date casing combos to supported format
UPDATE Config SET Value='Ymd'
WHERE Value IN ('YMD', 'YMd', 'YmD', 'yMD', 'yMd', 'ymD', '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')
AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dodFormat');

UPDATE Config SET Value='Ym'
WHERE Value IN ('YM', 'ym', 'yM')
AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dobFormat');

UPDATE Config SET Value='Ym'
WHERE Value IN ('YM', 'ym', 'yM')
AND ConfigID=(SELECT ID FROM ConfigSettings WHERE Name='dodFormat');

0 comments on commit 75f3ba7

Please sign in to comment.