1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 18:10:53 +01:00
phorge-phorge/resources/sql/patches/031.workerrace.sql

14 lines
342 B
MySQL
Raw Normal View History

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