Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15395020
D21132.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
D21132.diff
View Options
diff --git a/resources/sql/autopatches/20160223.paste.fileedges.php b/resources/sql/autopatches/20160223.paste.fileedges.php
--- a/resources/sql/autopatches/20160223.paste.fileedges.php
+++ b/resources/sql/autopatches/20160223.paste.fileedges.php
@@ -4,18 +4,8 @@
// underlying file data were not written correctly. This restores edges for
// any missing pastes.
-$table = new PhabricatorPaste();
-$edge_type = PhabricatorObjectHasFileEdgeType::EDGECONST;
-
-foreach (new LiskMigrationIterator($table) as $paste) {
- $paste_phid = $paste->getPHID();
- $file_phid = $paste->getFilePHID();
-
- if (!$file_phid) {
- continue;
- }
-
- id(new PhabricatorEdgeEditor())
- ->addEdge($paste_phid, $edge_type, $file_phid)
- ->save();
-}
+// See T13510. The "pastebin" database was later renamed to "paste", which
+// broke this migration. The migration was removed in 2020 since it seems
+// plausible that zero installs are impacted (only installs that ran code
+// from November 2015 and have not upgraded in five years could possibly be
+// impacted).
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 2:34 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7389114
Default Alt Text
D21132.diff (1 KB)
Attached To
Mode
D21132: No-op an ancient Paste edge migration which no longer functions after a database rename
Attached
Detach File
Event Timeline
Log In to Comment