Skip to content

Commit 0329df0

Browse files
author
epriestley
committedMay 19, 2022
Copy file attachment edges to new storage
Summary: Ref T13603. Copy all existing file attachment data into the new storage table. Test Plan: Ran migration, checked attachment table for general reasonableness. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13603 Differential Revision: https://secure.phabricator.com/D21818
1 parent 4a2d961 commit 0329df0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
INSERT IGNORE INTO {$NAMESPACE}_file.file_attachment
2+
(objectPHID, filePHID, attachmentMode, attacherPHID,
3+
dateCreated, dateModified)
4+
SELECT dst, src, 'attach', null, dateCreated, dateCreated
5+
FROM {$NAMESPACE}_file.edge
6+
WHERE type = 26
7+
ORDER BY dateCreated ASC;

0 commit comments

Comments
 (0)
Failed to load comments.