Changeset 739 for trunk/Common/Setup/Updates.php
- Timestamp:
- May 23, 2015, 12:07:08 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r738 r739 1343 1343 $Manager->Execute('ALTER TABLE `NetworkLinkType` 1344 1344 MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT;'); 1345 } 1346 1347 function UpdateTo739($Manager) 1348 { 1349 $Manager->Execute('ALTER TABLE `NetworkDomain` ADD KEY (`Parent`);'); 1350 $Manager->Execute('ALTER TABLE `NetworkDomain` ADD FOREIGN KEY (`Parent`) REFERENCES `NetworkDomain`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1351 1352 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkDomainServer` ( 1353 `Id` int(11) NOT NULL AUTO_INCREMENT, 1354 `Address` varchar(255) NOT NULL, 1355 `Domain` int(11) NOT NULL, 1356 `Sequence` int(11) NOT NULL 1357 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1358 1359 $Manager->Execute('ALTER TABLE `NetworkDomainServer` 1360 ADD PRIMARY KEY (`Id`), ADD KEY `Domain` (`Domain`);'); 1361 1362 $Manager->Execute('ALTER TABLE `NetworkDomainServer` 1363 ADD CONSTRAINT `NetworkDomainServer_ibfk_1` FOREIGN KEY (`Domain`) REFERENCES `NetworkDomain` (`Id`);'); 1364 1345 1365 } 1346 1366 … … 1411 1431 731 => array('Revision' => 735, 'Function' => 'UpdateTo735'), 1412 1432 735 => array('Revision' => 736, 'Function' => 'UpdateTo736'), 1433 736 => array('Revision' => 739, 'Function' => 'UpdateTo739'), 1413 1434 )); 1414 1435 }
Note:
See TracChangeset
for help on using the changeset viewer.