1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00
phorge-phorge/resources/sql/patches/114.auditrequest.sql

17 lines
650 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_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 {$NAMESPACE}_repository.repository_auditrequest
(auditorPHID, commitPHID, auditStatus, auditReasons)
SELECT packagePHID, commitPHID, auditStatus, auditReasons
FROM {$NAMESPACE}_owners.owners_packagecommitrelationship;
DROP TABLE {$NAMESPACE}_owners.owners_packagecommitrelationship;