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;