mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 17:02:41 +01:00
d94129b739
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
16 lines
646 B
SQL
16 lines
646 B
SQL
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;
|