added first round of lifecycle processing.
added minor lifecycle cleanup to sanitize.sql.master
parent
14497754f5
commit
a551f9321c
@ -0,0 +1,6 @@
|
||||
CREATE TABLE event_counts AS
|
||||
SELECT DATE(timestamp) as event_date,
|
||||
if(substring(new_value, 1, 1) = '+', 1, -1) as event_count,
|
||||
SUBSTRING(`new_value` FROM 2) as flag
|
||||
FROM project_lifecycle
|
||||
WHERE changed_column = 'status';
|
||||
@ -1,4 +1,9 @@
|
||||
DROP TABLE tokens;
|
||||
|
||||
-- noinspection SqlWithoutWhere
|
||||
UPDATE users SET hash = '';
|
||||
UPDATE users SET hash = '';
|
||||
|
||||
DELETE from project_lifecycle where project_number = 'EVENT';
|
||||
|
||||
UPDATE project_lifecycle set new_value = '+CREATED' where changed_column = 'created';
|
||||
UPDATE project_lifecycle set changed_column = 'status' where changed_column = 'created';
|
||||
Loading…
Reference in New Issue