Rename "transactionpro" table to "transaction"

Summary: Ref T2217. Cleans up the table names. Moves old data to `maniphest_transaction_legacy`. We'll drop that eventually once it's more clear that I didn't break the world.

Test Plan: Did reads/writes to/from these tables.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2217

Differential Revision: https://secure.phabricator.com/D7094
This commit is contained in:
epriestley
2013-09-24 10:49:16 -07:00
parent 01ecf1a236
commit 1d7cbe202f
4 changed files with 9 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_transaction
RENAME {$NAMESPACE}_maniphest.maniphest_transaction_legacy;
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_transactionpro
RENAME {$NAMESPACE}_maniphest.maniphest_transaction;

View File

@@ -17,11 +17,6 @@ final class ManiphestTransaction
return 'maniphest';
}
public function getTableName() {
// TODO: Remove once the "pro" table gets renamed.
return 'maniphest_transactionpro';
}
public function getApplicationTransactionType() {
return ManiphestPHIDTypeTask::TYPECONST;
}

View File

@@ -3,11 +3,6 @@
final class ManiphestTransactionComment
extends PhabricatorApplicationTransactionComment {
public function getTableName() {
// TODO: Remove once the "pro" stuff gets dropped.
return 'maniphest_transaction_comment';
}
public function getApplicationTransactionObject() {
return new ManiphestTransaction();
}

View File

@@ -1620,6 +1620,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'type' => 'php',
'name' => $this->getPatchPath('20130921.xmigratemaniphest.php'),
),
'20130923.mrename.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('20130923.mrename.sql'),
),
);
}
}