Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/20130926.dinline.php
| Show All 28 Lines | foreach ($rows as $row) { | ||||
| if (!$revision_row) { | if (!$revision_row) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $revision_phid = $revision_row['phid']; | $revision_phid = $revision_row['phid']; | ||||
| if ($row['commentID']) { | if ($row['commentID']) { | ||||
| $xaction_phid = PhabricatorPHID::generateNewPHID( | $xaction_phid = PhabricatorPHID::generateNewPHID( | ||||
| PhabricatorApplicationTransactionPHIDTypeTransaction::TYPECONST, | PhabricatorApplicationTransactionTransactionPHIDType::TYPECONST, | ||||
| DifferentialPHIDTypeRevision::TYPECONST); | DifferentialRevisionPHIDType::TYPECONST); | ||||
| } else { | } else { | ||||
| $xaction_phid = null; | $xaction_phid = null; | ||||
| } | } | ||||
| $comment_phid = PhabricatorPHID::generateNewPHID( | $comment_phid = PhabricatorPHID::generateNewPHID( | ||||
| PhabricatorPHIDConstants::PHID_TYPE_XCMT, | PhabricatorPHIDConstants::PHID_TYPE_XCMT, | ||||
| DifferentialPHIDTypeRevision::TYPECONST); | DifferentialRevisionPHIDType::TYPECONST); | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'INSERT IGNORE INTO %T | 'INSERT IGNORE INTO %T | ||||
| (id, phid, transactionPHID, authorPHID, viewPolicy, editPolicy, | (id, phid, transactionPHID, authorPHID, viewPolicy, editPolicy, | ||||
| commentVersion, content, contentSource, isDeleted, | commentVersion, content, contentSource, isDeleted, | ||||
| dateCreated, dateModified, revisionPHID, changesetID, | dateCreated, dateModified, revisionPHID, changesetID, | ||||
| isNewFile, lineNumber, lineLength, hasReplies, legacyCommentID) | isNewFile, lineNumber, lineLength, hasReplies, legacyCommentID) | ||||
| Show All 37 Lines | |||||