mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
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
This commit is contained in:
parent
4a2d961e76
commit
0329df0fa8
1 changed files with 7 additions and 0 deletions
7
resources/sql/autopatches/20220519.file.02.migrate.sql
Normal file
7
resources/sql/autopatches/20220519.file.02.migrate.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
INSERT IGNORE INTO {$NAMESPACE}_file.file_attachment
|
||||
(objectPHID, filePHID, attachmentMode, attacherPHID,
|
||||
dateCreated, dateModified)
|
||||
SELECT dst, src, 'attach', null, dateCreated, dateCreated
|
||||
FROM {$NAMESPACE}_file.edge
|
||||
WHERE type = 26
|
||||
ORDER BY dateCreated ASC;
|
Loading…
Reference in a new issue