You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7 lines
487 B

INSERT INTO tiki_object_relations (`relation`, `source_type`, `source_itemId`, `target_type`, `target_itemId`)
SELECT 'tiki.friend.follow', 'user', `user`, 'user', `friend` FROM `tiki_friends`;
INSERT INTO tiki_object_relations (`relation`, `source_type`, `source_itemId`, `target_type`, `target_itemId`)
SELECT 'tiki.friend.follow.request', 'user', `userFrom`, 'user', `userTo` FROM `tiki_friendship_requests`;
DROP TABLE `tiki_friends`;
DROP TABLE `tiki_friendship_requests`;