Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/autopatches/20140211.dx.2.migcommenttext.php
| Show All 21 Lines | if (!$revision) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $revision_phid = $revision->getPHID(); | $revision_phid = $revision->getPHID(); | ||||
| $dst_table = 'differential_inline_comment'; | $dst_table = 'differential_inline_comment'; | ||||
| $xaction_phid = PhabricatorPHID::generateNewPHID( | $xaction_phid = PhabricatorPHID::generateNewPHID( | ||||
| PhabricatorApplicationTransactionPHIDTypeTransaction::TYPECONST, | PhabricatorApplicationTransactionTransactionPHIDType::TYPECONST, | ||||
| DifferentialPHIDTypeRevision::TYPECONST); | DifferentialRevisionPHIDType::TYPECONST); | ||||
| $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 | ||||
| (phid, transactionPHID, authorPHID, viewPolicy, editPolicy, | (phid, transactionPHID, authorPHID, viewPolicy, editPolicy, | ||||
| commentVersion, content, contentSource, isDeleted, | commentVersion, content, contentSource, isDeleted, | ||||
| dateCreated, dateModified, revisionPHID, changesetID, | dateCreated, dateModified, revisionPHID, changesetID, | ||||
| legacyCommentID) | legacyCommentID) | ||||
| Show All 28 Lines | |||||