1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00

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
This commit is contained in:
epriestley 2019-07-18 10:31:52 -07:00
parent cb4add3116
commit f55aac49f4
8 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,2 @@
RENAME TABLE {$NAMESPACE}_pastebin.edge
TO {$NAMESPACE}_paste.edge;

View file

@ -0,0 +1,2 @@
RENAME TABLE {$NAMESPACE}_pastebin.edgedata
TO {$NAMESPACE}_paste.edgedata;

View file

@ -0,0 +1,2 @@
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_paste
TO {$NAMESPACE}_paste.paste;

View file

@ -0,0 +1,2 @@
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction
TO {$NAMESPACE}_paste.paste_transaction;

View file

@ -0,0 +1,2 @@
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction_comment
TO {$NAMESPACE}_paste.paste_transaction_comment;

View file

@ -3,7 +3,7 @@
abstract class PhabricatorPasteDAO extends PhabricatorLiskDAO {
public function getApplicationName() {
return 'pastebin';
return 'paste';
}
}

View file

@ -8,7 +8,7 @@ final class PhabricatorPasteTransaction
const MAILTAG_COMMENT = 'paste-comment';
public function getApplicationName() {
return 'pastebin';
return 'paste';
}
public function getApplicationTransactionType() {

View file

@ -67,7 +67,9 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'db.metamta' => array(),
'db.oauth_server' => array(),
'db.owners' => array(),
'db.pastebin' => array(),
'db.pastebin' => array(
'dead' => true,
),
'db.phame' => array(),
'db.phriction' => array(),
'db.project' => array(),
@ -113,6 +115,7 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'db.badges' => array(),
'db.packages' => array(),
'db.application' => array(),
'db.paste' => array(),
'0000.legacy.sql' => array(
'legacy' => 0,
),