1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-11 08:06:13 +01:00
phorge-phorge/resources/sql/patches/064.subprojects.sql
epriestley 8df62d5352 Allow users to associate SSH Public Keys with their accounts
Summary:
With the sshd-vcs thing I hacked together, this will enable Phabricator to host
repositories without requiring users to have SSH accounts.

I also fixed "subporjects" and added an explicit ENGINE to it.

Test Plan: Created, edited and deleted public keys. Attempted to add the same
public key twice. Attempted to add invalid and unnamed public keys.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran, cadamo, codeblock
CC: aran, epriestley
Differential Revision: 711
2011-07-23 09:15:20 -07:00

11 lines
No EOL
394 B
SQL

ALTER TABLE phabricator_project.project
ADD subprojectPHIDs longblob NOT NULL;
UPDATE phabricator_project.project
SET subprojectPHIDs = '[]';
CREATE TABLE phabricator_project.project_subproject (
projectPHID varchar(64) BINARY NOT NULL,
subprojectPHID varchar(64) BINARY NOT NULL,
PRIMARY KEY (subprojectPHID, projectPHID),
UNIQUE KEY (projectPHID, subprojectPHID)
) ENGINE=InnoDB;