1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 02:32:42 +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;