From 022e7bbee6e3c8c6e46b1aa44462b4c4ff90d660 Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 8 Apr 2022 12:04:00 -0400 Subject: [PATCH] removed data-reformatting in billing.sql --- src/sql/0-run-first/billing.sql | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/sql/0-run-first/billing.sql b/src/sql/0-run-first/billing.sql index 994d762..8008b39 100644 --- a/src/sql/0-run-first/billing.sql +++ b/src/sql/0-run-first/billing.sql @@ -12,9 +12,11 @@ FROM billing; CREATE INDEX ref_num ON billing_report (refNumber); CREATE INDEX div_idx ON billing_report (division); -UPDATE billing_report -SET division = IF( - division = 'Warranty', - CONCAT(SUBSTRING(refNumber, 1, 3), ' - ', 'Structural'), - CONCAT(SUBSTRING(refNumber, 1, 3), ' - ', division) - ); +# So this little ditty will replace the raw proejct_type info with a prettified string. Only problem is it takes more than +# 10 minutes to run on our t3a.micro ec2 instance. +# UPDATE billing_report +# SET division = IF( +# division = 'Warranty', +# CONCAT(SUBSTRING(refNumber, 1, 3), ' - ', 'Structural'), +# CONCAT(SUBSTRING(refNumber, 1, 3), ' - ', division) +# );