Page MenuHomePhabricator

D13223.id32001.diff
No OneTemporary

D13223.id32001.diff

diff --git a/resources/sql/autopatches/20150609.pastebin.1.sql b/resources/sql/autopatches/20150609.pastebin.1.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20150609.pastebin.1.sql
@@ -0,0 +1,10 @@
+RENAME TABLE {$NAMESPACE}_pastebin.edge
+ TO {$NAMESPACE}_paste.edge;
+RENAME TABLE {$NAMESPACE}_pastebin.edgedata
+ TO {$NAMESPACE}_paste.edgedata;
+RENAME TABLE {$NAMESPACE}_pastebin.pastebin_paste
+ TO {$NAMESPACE}_paste.paste;
+RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction
+ TO {$NAMESPACE}_paste.paste_transaction;
+RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction_comment
+ TO {$NAMESPACE}_paste.paste_transaction_comment;
diff --git a/resources/sql/autopatches/20150609.pastebin.2.sql b/resources/sql/autopatches/20150609.pastebin.2.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20150609.pastebin.2.sql
@@ -0,0 +1 @@
+DROP DATABASE {$NAMESPACE}_pastebin;
diff --git a/src/applications/paste/storage/PhabricatorPasteDAO.php b/src/applications/paste/storage/PhabricatorPasteDAO.php
--- a/src/applications/paste/storage/PhabricatorPasteDAO.php
+++ b/src/applications/paste/storage/PhabricatorPasteDAO.php
@@ -3,7 +3,7 @@
abstract class PhabricatorPasteDAO extends PhabricatorLiskDAO {
public function getApplicationName() {
- return 'pastebin';
+ return 'paste';
}
}
diff --git a/src/applications/paste/storage/PhabricatorPasteTransaction.php b/src/applications/paste/storage/PhabricatorPasteTransaction.php
--- a/src/applications/paste/storage/PhabricatorPasteTransaction.php
+++ b/src/applications/paste/storage/PhabricatorPasteTransaction.php
@@ -12,7 +12,7 @@
const MAILTAG_COMMENT = 'paste-comment';
public function getApplicationName() {
- return 'pastebin';
+ return 'paste';
}
public function getApplicationTransactionType() {
diff --git a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
--- a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
+++ b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
@@ -67,7 +67,10 @@
'db.metamta' => array(),
'db.oauth_server' => array(),
'db.owners' => array(),
- 'db.pastebin' => array(),
+ 'db.paste' => array(),
+ 'db.pastebin' => array(
+ 'dead' => true,
+ ),
'db.phame' => array(),
'db.phriction' => array(),
'db.project' => array(),

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 28, 3:40 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7725508
Default Alt Text
D13223.id32001.diff (2 KB)

Event Timeline