From 50b49e0657ba56cb11a333fc75eeab68e5f41153 Mon Sep 17 00:00:00 2001 From: dtookey Date: Wed, 20 Apr 2022 11:16:01 -0400 Subject: [PATCH] Revert "removed begin/end block that was throwing errors" This reverts commit 21b3bf3aa44eb243ee540c0f4b096ae2c8cb8cdf. # Conflicts: # src/sql/0-run-first/contributions.sql --- src/sql/0-run-first/1-sanitize_init.sql | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/sql/0-run-first/1-sanitize_init.sql b/src/sql/0-run-first/1-sanitize_init.sql index 194bfe3..ecb0948 100644 --- a/src/sql/0-run-first/1-sanitize_init.sql +++ b/src/sql/0-run-first/1-sanitize_init.sql @@ -14,19 +14,15 @@ DELETE FROM project_lifecycle WHERE project_number = 'EVENT'; - -#for some reason, Datastudio won't let us change the timezone, so it reports everything in UTC. This is the current workaround -SET @tz_adjust = 4; - UPDATE billing -SET accepted_date = accepted_date - INTERVAL @tz_adjust HOUR, - line_created = line_created - INTERVAL @tz_adjust HOUR; +set accepted_date = accepted_date - INTERVAL 4 HOUR, + line_created = line_created - INTERVAL 4 HOUR; UPDATE dispatch -SET date_dispatched = date_dispatched - INTERVAL @tz_adjust HOUR; +SET date_dispatched = date_dispatched - INTERVAL 4 HOUR; UPDATE project_comments -set timestamp = timestamp - INTERVAL @tz_adjust HOUR; +set timestamp = timestamp - INTERVAL 4 HOUR; UPDATE project_lifecycle -SET timestamp = timestamp - INTERVAL @tz_adjust HOUR; +SET timestamp = timestamp - INTERVAL 4 HOUR; ALTER TABLE project_lifecycle ADD COLUMN id INT AUTO_INCREMENT KEY FIRST;