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
This commit is contained in:
16
resources/sql/patches/114.auditrequest.sql
Normal file
16
resources/sql/patches/114.auditrequest.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
CREATE TABLE phabricator_repository.repository_auditrequest (
|
||||
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;
|
||||
|
||||
INSERT INTO phabricator_repository.repository_auditrequest
|
||||
(auditorPHID, commitPHID, auditStatus, auditReasons)
|
||||
SELECT packagePHID, commitPHID, auditStatus, auditReasons
|
||||
FROM phabricator_owners.owners_packagecommitrelationship;
|
||||
|
||||
DROP TABLE phabricator_owners.owners_packagecommitrelationship;
|
||||
Reference in New Issue
Block a user