Skip to content

Commit

Permalink
camille's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jesscall committed Jun 30, 2020
1 parent 96f5389 commit ebf0301
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit ebf0301

Please sign in to comment.