@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add storage for new Maniphest transactions

Summary: Ref T2217. Add the tables and comment class for the new stuff. Not used yet.

Test Plan: Ran storage upgrade, browsed Maniphest.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2217

Differential Revision: https://secure.phabricator.com/D7066

+56 -1
+41
resources/sql/patches/20130921.mtransactions.sql
··· 1 + CREATE TABLE {$NAMESPACE}_maniphest.maniphest_transactionpro ( 2 + id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, 3 + phid VARCHAR(64) NOT NULL COLLATE utf8_bin, 4 + authorPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 5 + objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 6 + viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin, 7 + editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin, 8 + commentPHID VARCHAR(64) COLLATE utf8_bin, 9 + commentVersion INT UNSIGNED NOT NULL, 10 + transactionType VARCHAR(32) NOT NULL COLLATE utf8_bin, 11 + oldValue LONGTEXT NOT NULL COLLATE utf8_bin, 12 + newValue LONGTEXT NOT NULL COLLATE utf8_bin, 13 + contentSource LONGTEXT NOT NULL COLLATE utf8_bin, 14 + metadata LONGTEXT NOT NULL COLLATE utf8_bin, 15 + dateCreated INT UNSIGNED NOT NULL, 16 + dateModified INT UNSIGNED NOT NULL, 17 + 18 + UNIQUE KEY `key_phid` (phid), 19 + KEY `key_object` (objectPHID) 20 + 21 + ) ENGINE=InnoDB, COLLATE utf8_general_ci; 22 + 23 + CREATE TABLE {$NAMESPACE}_maniphest.maniphest_transaction_comment ( 24 + id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, 25 + phid VARCHAR(64) NOT NULL COLLATE utf8_bin, 26 + transactionPHID VARCHAR(64) COLLATE utf8_bin, 27 + authorPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 28 + viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin, 29 + editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin, 30 + commentVersion INT UNSIGNED NOT NULL, 31 + content LONGTEXT NOT NULL COLLATE utf8_bin, 32 + contentSource LONGTEXT NOT NULL COLLATE utf8_bin, 33 + isDeleted BOOL NOT NULL, 34 + dateCreated INT UNSIGNED NOT NULL, 35 + dateModified INT UNSIGNED NOT NULL, 36 + 37 + UNIQUE KEY `key_phid` (phid), 38 + UNIQUE KEY `key_version` (transactionPHID, commentVersion), 39 + UNIQUE KEY `key_draft` (authorPHID, transactionPHID) 40 + 41 + ) ENGINE=InnoDB, COLLATE utf8_general_ci;
+10
src/applications/maniphest/storage/ManiphestTransactionComment.php
··· 1 + <?php 2 + 3 + final class ManiphestTransactionComment 4 + extends PhabricatorApplicationTransactionComment { 5 + 6 + public function getApplicationTransactionObject() { 7 + return new ManiphestTransactionPro(); 8 + } 9 + 10 + }
+1 -1
src/applications/maniphest/storage/ManiphestTransactionPro.php
··· 12 12 } 13 13 14 14 public function getApplicationTransactionCommentObject() { 15 - return null; 15 + return new ManiphestTransactionComment(); 16 16 } 17 17 18 18 }
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1612 1612 'type' => 'sql', 1613 1613 'name' => $this->getPatchPath('20130920.repokeyspolicy.sql'), 1614 1614 ), 1615 + '20130921.mtransactions.sql' => array( 1616 + 'type' => 'sql', 1617 + 'name' => $this->getPatchPath('20130921.mtransactions.sql'), 1618 + ), 1615 1619 ); 1616 1620 } 1617 1621 }