2012-04-30 16:53:53 +02:00
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_package (
|
2011-04-03 23:48:36 +02:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
phid varchar(64) binary not null,
|
|
|
|
unique key(phid),
|
2014-10-29 23:49:29 +01:00
|
|
|
name varchar(255) COLLATE `binary` not null,
|
2011-04-03 23:48:36 +02:00
|
|
|
unique key(name),
|
|
|
|
description text not null,
|
|
|
|
primaryOwnerPHID varchar(64) binary
|
|
|
|
);
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_owner (
|
2011-04-03 23:48:36 +02:00
|
|
|
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)
|
|
|
|
);
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_path (
|
2011-04-03 23:48:36 +02:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
packageID int unsigned not null,
|
|
|
|
key(packageID),
|
|
|
|
repositoryPHID varchar(64) binary not null,
|
2011-04-04 07:03:27 +02:00
|
|
|
path varchar(255) not null
|
2011-10-17 22:28:23 +02:00
|
|
|
);
|