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
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;