2012-04-30 16:53:53 +02:00
|
|
|
CREATE TABLE {$NAMESPACE}_repository.repository_auditrequest (
|
Migrate "PhabricatorOwnersPackageCommitRelationship" to "PhabricatorRepositoryAuditRequest"
Summary:
- Move table to Repository, since we have no Owners joins in the application anymore but would like to do a Repository join.
- Rename "packagePHID" to "auditorPHID", since this column may contain package, project, or user PHIDs.
Test Plan:
- Browsed Owners, Audit, and Differential interfaces to the Audit tool.
- Made comments and state changes.
- Ran "reparse.php --herald --owners" on several commits.
Reviewers: btrahan, jungejason
Reviewed By: btrahan
CC: aran, epriestley, nh, vrana
Maniphest Tasks: T904
Differential Revision: https://secure.phabricator.com/D1787
2012-03-05 22:17:29 +01:00
|
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
auditorPHID varchar(64) BINARY NOT NULL,
|
|
|
|
commitPHID varchar(64) BINARY NOT NULL,
|
|
|
|
auditStatus varchar(64) NOT NULL,
|
|
|
|
auditReasons LONGBLOB NOT NULL,
|
|
|
|
KEY (commitPHID),
|
|
|
|
KEY (auditorPHID, auditStatus)
|
|
|
|
) ENGINE=InnoDB;
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
INSERT INTO {$NAMESPACE}_repository.repository_auditrequest
|
Migrate "PhabricatorOwnersPackageCommitRelationship" to "PhabricatorRepositoryAuditRequest"
Summary:
- Move table to Repository, since we have no Owners joins in the application anymore but would like to do a Repository join.
- Rename "packagePHID" to "auditorPHID", since this column may contain package, project, or user PHIDs.
Test Plan:
- Browsed Owners, Audit, and Differential interfaces to the Audit tool.
- Made comments and state changes.
- Ran "reparse.php --herald --owners" on several commits.
Reviewers: btrahan, jungejason
Reviewed By: btrahan
CC: aran, epriestley, nh, vrana
Maniphest Tasks: T904
Differential Revision: https://secure.phabricator.com/D1787
2012-03-05 22:17:29 +01:00
|
|
|
(auditorPHID, commitPHID, auditStatus, auditReasons)
|
|
|
|
SELECT packagePHID, commitPHID, auditStatus, auditReasons
|
2012-04-30 16:53:53 +02:00
|
|
|
FROM {$NAMESPACE}_owners.owners_packagecommitrelationship;
|
Migrate "PhabricatorOwnersPackageCommitRelationship" to "PhabricatorRepositoryAuditRequest"
Summary:
- Move table to Repository, since we have no Owners joins in the application anymore but would like to do a Repository join.
- Rename "packagePHID" to "auditorPHID", since this column may contain package, project, or user PHIDs.
Test Plan:
- Browsed Owners, Audit, and Differential interfaces to the Audit tool.
- Made comments and state changes.
- Ran "reparse.php --herald --owners" on several commits.
Reviewers: btrahan, jungejason
Reviewed By: btrahan
CC: aran, epriestley, nh, vrana
Maniphest Tasks: T904
Differential Revision: https://secure.phabricator.com/D1787
2012-03-05 22:17:29 +01:00
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
DROP TABLE {$NAMESPACE}_owners.owners_packagecommitrelationship;
|