2012-04-30 07:53:53 -07:00
|
|
|
ALTER TABLE {$NAMESPACE}_project.project
|
2011-07-19 15:50:15 -03:00
|
|
|
ADD subprojectPHIDs longblob NOT NULL;
|
2012-04-30 07:53:53 -07:00
|
|
|
UPDATE {$NAMESPACE}_project.project
|
2011-07-19 15:50:15 -03:00
|
|
|
SET subprojectPHIDs = '[]';
|
2011-07-22 10:17:57 -07:00
|
|
|
|
2012-04-30 07:53:53 -07:00
|
|
|
CREATE TABLE {$NAMESPACE}_project.project_subproject (
|
2011-07-19 15:50:15 -03:00
|
|
|
projectPHID varchar(64) BINARY NOT NULL,
|
|
|
|
subprojectPHID varchar(64) BINARY NOT NULL,
|
|
|
|
PRIMARY KEY (subprojectPHID, projectPHID),
|
|
|
|
UNIQUE KEY (projectPHID, subprojectPHID)
|
2014-02-26 12:44:58 -08:00
|
|
|
) ENGINE=InnoDB;
|