From 7c81f8a610b969e2ce09a0db47b7ed8ea86782e0 Mon Sep 17 00:00:00 2001 From: woogerboy21 Date: Tue, 11 Aug 2015 15:46:59 -0400 Subject: [PATCH] Added lower case country code on correction. --- servatrice/scripts/linux/maint_countrycodes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servatrice/scripts/linux/maint_countrycodes b/servatrice/scripts/linux/maint_countrycodes index 81af8943..32d78628 100644 --- a/servatrice/scripts/linux/maint_countrycodes +++ b/servatrice/scripts/linux/maint_countrycodes @@ -27,5 +27,10 @@ do fi fi done + +if [ "$MODE" == "correct" ]; then + mysql --defaults-file=$SQLCONFFILE -h localhost -e "update ""$DBNAME"".""$TABLEPREFIX""_users set country = lower(country);" +fi + echo "INVALID: $INVALIDCOUNT" echo "VALID: $VALIDCOUNT"