1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-05 21:26:14 +01:00
phorge-phorge/resources/sql/patches/029.cursors.sql

14 lines
369 B
MySQL
Raw Normal View History

ALTER TABLE {$NAMESPACE}_timeline.timeline_event
ADD dataID int unsigned;
ALTER TABLE {$NAMESPACE}_timeline.timeline_event
ADD UNIQUE KEY (dataID);
UPDATE {$NAMESPACE}_timeline.timeline_event e,
{$NAMESPACE}_timeline.timeline_eventdata d
SET e.dataID = d.id
WHERE d.eventID = e.id;
ALTER TABLE {$NAMESPACE}_timeline.timeline_eventdata
DROP eventID;