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