@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.

Rename "pastebin" database to "paste"

Summary:
See D20650. Long ago, this got added as "pastebin", but that's the name of another product/company, not a generic term for paste storage.

Rename the database to `phabricator_paste`.

(An alternate version of this patch would rename `phabricator_search` to `phabricator_bing`, `phabricator_countdown` to `phabricator_spacex`, `phabricator_pholio` to `phabricator_adobe_photoshop`, etc.)

Test Plan:
- Grepped for `pastebin`, now only found references in old patches.
- Applied patches.
- Browsed around Paste in the UI without encountering issues.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

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

+16 -3
+2
resources/sql/autopatches/20190718.paste.01.edge.sql
··· 1 + RENAME TABLE {$NAMESPACE}_pastebin.edge 2 + TO {$NAMESPACE}_paste.edge;
+2
resources/sql/autopatches/20190718.paste.02.edgedata.sql
··· 1 + RENAME TABLE {$NAMESPACE}_pastebin.edgedata 2 + TO {$NAMESPACE}_paste.edgedata;
+2
resources/sql/autopatches/20190718.paste.03.paste.sql
··· 1 + RENAME TABLE {$NAMESPACE}_pastebin.pastebin_paste 2 + TO {$NAMESPACE}_paste.paste;
+2
resources/sql/autopatches/20190718.paste.04.xaction.sql
··· 1 + RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction 2 + TO {$NAMESPACE}_paste.paste_transaction;
+2
resources/sql/autopatches/20190718.paste.05.comment.sql
··· 1 + RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction_comment 2 + TO {$NAMESPACE}_paste.paste_transaction_comment;
+1 -1
src/applications/paste/storage/PhabricatorPasteDAO.php
··· 3 3 abstract class PhabricatorPasteDAO extends PhabricatorLiskDAO { 4 4 5 5 public function getApplicationName() { 6 - return 'pastebin'; 6 + return 'paste'; 7 7 } 8 8 9 9 }
+1 -1
src/applications/paste/storage/PhabricatorPasteTransaction.php
··· 8 8 const MAILTAG_COMMENT = 'paste-comment'; 9 9 10 10 public function getApplicationName() { 11 - return 'pastebin'; 11 + return 'paste'; 12 12 } 13 13 14 14 public function getApplicationTransactionType() {
+4 -1
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 67 67 'db.metamta' => array(), 68 68 'db.oauth_server' => array(), 69 69 'db.owners' => array(), 70 - 'db.pastebin' => array(), 70 + 'db.pastebin' => array( 71 + 'dead' => true, 72 + ), 71 73 'db.phame' => array(), 72 74 'db.phriction' => array(), 73 75 'db.project' => array(), ··· 113 115 'db.badges' => array(), 114 116 'db.packages' => array(), 115 117 'db.application' => array(), 118 + 'db.paste' => array(), 116 119 '0000.legacy.sql' => array( 117 120 'legacy' => 0, 118 121 ),