From 3ec8ffbef212bff151df62c78dd0faf01198b7ce Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 15 Apr 2022 15:02:05 -0400 Subject: [PATCH] Tweaked timestamps in project_lifecycle in order to shift it down 4 hours to local time from UTC. I guess this project officially doesn't recognize Standard Time. --- src/sql/0-run-first/1-sanitize_init.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/0-run-first/1-sanitize_init.sql b/src/sql/0-run-first/1-sanitize_init.sql index e19635c..15ba8fe 100644 --- a/src/sql/0-run-first/1-sanitize_init.sql +++ b/src/sql/0-run-first/1-sanitize_init.sql @@ -10,6 +10,8 @@ UPDATE users SET hash = ''; UPDATE project_lifecycle SET new_value = '+CREATED', changed_column = 'status' WHERE changed_column = 'created'; DELETE FROM project_lifecycle WHERE project_number = 'EVENT'; +UPDATE project_lifecycle SET timestamp = timestamp - INTERVAL 4 HOUR; + ALTER TABLE project_lifecycle ADD COLUMN id INT AUTO_INCREMENT KEY FIRST; CREATE OR REPLACE INDEX lifecycle_timestamp on project_lifecycle (timestamp); CREATE OR REPLACE INDEX lifecycle_newval on project_lifecycle (new_value); \ No newline at end of file