1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 17:30:59 +01:00
phorge-phorge/resources/sql/patches/031.workerrace.sql

14 lines
337 B
MySQL
Raw Normal View History

ALTER TABLE phabricator_worker.worker_task
ADD dataID int unsigned;
ALTER TABLE phabricator_worker.worker_task
ADD UNIQUE KEY (dataID);
UPDATE phabricator_worker.worker_task t,
phabricator_worker.worker_taskdata d
SET t.dataID = d.id
WHERE d.taskID = t.id;
ALTER TABLE phabricator_worker.worker_taskdata
DROP taskID;