Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13981183
D17770.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17770.id.diff
View Options
diff --git a/resources/sql/autopatches/20161005.conpherence.image.2.php b/resources/sql/autopatches/20161005.conpherence.image.2.php
--- a/resources/sql/autopatches/20161005.conpherence.image.2.php
+++ b/resources/sql/autopatches/20161005.conpherence.image.2.php
@@ -1,34 +1,4 @@
<?php
-// Rebuild all Conpherence Room images to profile standards
-//
-$table = new ConpherenceThread();
-$conn = $table->establishConnection('w');
-$table_name = 'conpherence_thread';
-
-foreach (new LiskRawMigrationIterator($conn, $table_name) as $row) {
-
- $images = phutil_json_decode($row['imagePHIDs']);
- if (!$images) {
- continue;
- }
-
- $file_phid = idx($images, 'original');
-
- $file = id(new PhabricatorFileQuery())
- ->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withPHIDs(array($file_phid))
- ->executeOne();
-
- $xform = PhabricatorFileTransform::getTransformByKey(
- PhabricatorFileThumbnailTransform::TRANSFORM_PROFILE);
- $xformed = $xform->executeTransform($file);
- $new_phid = $xformed->getPHID();
-
- queryfx(
- $conn,
- 'UPDATE %T SET profileImagePHID = %s WHERE id = %d',
- $table->getTableName(),
- $new_phid,
- $row['id']);
-}
+// This migration once resized room images for Conpherence, but the File table
+// later changed significantly. See T12628.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 20, 2:47 PM (4 w, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736250
Default Alt Text
D17770.id.diff (1 KB)
Attached To
Mode
D17770: No-op the Conpherence thumbnail resizing migration
Attached
Detach File
Event Timeline
Log In to Comment