simplified sanitizing created project events in project_lifecycles.

master
dtookey 4 years ago
parent 78bbd9a706
commit cb15790501

@ -1,7 +1,6 @@
DROP TABLE IF EXISTS tokens;
DROP INDEX IF EXISTS billing_refnum ON billing;
CREATE INDEX billing_refnum ON billing (refNumber);
CREATE OR REPLACE INDEX billing_refnum ON billing (refNumber);
-- noinspection SqlWithoutWhere
UPDATE users SET hash = '';
@ -10,6 +9,5 @@ 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);
UPDATE project_lifecycle SET new_value = '+CREATED' WHERE changed_column = 'created';
UPDATE project_lifecycle SET changed_column = 'status' WHERE changed_column = 'created';
UPDATE project_lifecycle SET new_value = '+CREATED', changed_column = 'status' WHERE changed_column = 'created';
DELETE FROM project_lifecycle WHERE project_number = 'EVENT';
Loading…
Cancel
Save