1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +01:00
phorge-phorge/resources/sql/patches/114.auditrequest.sql
epriestley d94129b739 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 13:17:29 -08:00

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;