mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +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:
parent
cb4add3116
commit
f55aac49f4
8 changed files with 16 additions and 3 deletions
2
resources/sql/autopatches/20190718.paste.01.edge.sql
Normal file
2
resources/sql/autopatches/20190718.paste.01.edge.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
RENAME TABLE {$NAMESPACE}_pastebin.edge
|
||||
TO {$NAMESPACE}_paste.edge;
|
2
resources/sql/autopatches/20190718.paste.02.edgedata.sql
Normal file
2
resources/sql/autopatches/20190718.paste.02.edgedata.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
RENAME TABLE {$NAMESPACE}_pastebin.edgedata
|
||||
TO {$NAMESPACE}_paste.edgedata;
|
2
resources/sql/autopatches/20190718.paste.03.paste.sql
Normal file
2
resources/sql/autopatches/20190718.paste.03.paste.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_paste
|
||||
TO {$NAMESPACE}_paste.paste;
|
2
resources/sql/autopatches/20190718.paste.04.xaction.sql
Normal file
2
resources/sql/autopatches/20190718.paste.04.xaction.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction
|
||||
TO {$NAMESPACE}_paste.paste_transaction;
|
2
resources/sql/autopatches/20190718.paste.05.comment.sql
Normal file
2
resources/sql/autopatches/20190718.paste.05.comment.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction_comment
|
||||
TO {$NAMESPACE}_paste.paste_transaction_comment;
|
|
@ -3,7 +3,7 @@
|
|||
abstract class PhabricatorPasteDAO extends PhabricatorLiskDAO {
|
||||
|
||||
public function getApplicationName() {
|
||||
return 'pastebin';
|
||||
return 'paste';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ final class PhabricatorPasteTransaction
|
|||
const MAILTAG_COMMENT = 'paste-comment';
|
||||
|
||||
public function getApplicationName() {
|
||||
return 'pastebin';
|
||||
return 'paste';
|
||||
}
|
||||
|
||||
public function getApplicationTransactionType() {
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue