mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 23:32:40 +01:00
6270114767
Summary: - Removed trailing newlines. - Added newline at EOF. - Removed leading newlines. - Trimmed trailing whitespace. - Spelling fix. - Added newline at EOF Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: hach-que, chad, Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8344
25 lines
748 B
SQL
25 lines
748 B
SQL
CREATE TABLE {$NAMESPACE}_owners.owners_package (
|
|
id int unsigned not null auto_increment primary key,
|
|
phid varchar(64) binary not null,
|
|
unique key(phid),
|
|
name varchar(255) not null,
|
|
unique key(name),
|
|
description text not null,
|
|
primaryOwnerPHID varchar(64) binary
|
|
);
|
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_owner (
|
|
id int unsigned not null auto_increment primary key,
|
|
packageID int unsigned not null,
|
|
userPHID varchar(64) binary not null,
|
|
UNIQUE KEY(packageID, userPHID),
|
|
KEY(userPHID)
|
|
);
|
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_path (
|
|
id int unsigned not null auto_increment primary key,
|
|
packageID int unsigned not null,
|
|
key(packageID),
|
|
repositoryPHID varchar(64) binary not null,
|
|
path varchar(255) not null
|
|
);
|