Changeset 771
- Timestamp:
- Dec 24, 2015, 4:20:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r770 r771 1637 1637 function UpdateTo768($Manager) 1638 1638 { 1639 $Manager->Execute('ALTER TABLE `NetworkDomainAlias` ADD `Domain` INT NOT NULL AFTER `Comment`;');1639 /* $Manager->Execute('ALTER TABLE `NetworkDomainAlias` ADD `Domain` INT NOT NULL AFTER `Comment`;'); 1640 1640 $Manager->Execute('ALTER TABLE `NetworkDomainAlias` ADD KEY `Domain` (`Domain`);'); 1641 1641 $Manager->Execute('UPDATE `NetworkDomainAlias` SET `Domain`=1'); … … 1653 1653 `Suffix` varchar(255) NOT NULL, 1654 1654 `View` int(11) NOT NULL, 1655 `AddressRange` varchar(255) NOT NULL 1655 `AddressRange` varchar(255) NOT NULL, 1656 1656 PRIMARY KEY (`Id`), 1657 1657 KEY `Domain` (`Domain`), … … 1663 1663 `AddressRange` varchar(255) NOT NULL, 1664 1664 `Name` varchar(255) NOT NULL, 1665 `SysName` varchar(255) NOT NULL 1665 `SysName` varchar(255) NOT NULL, 1666 1666 PRIMARY KEY (`Id`), 1667 1667 KEY `Domain` (`Domain`) 1668 1668 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1669 */ 1670 $Manager->Execute('ALTER TABLE `NetworkDomainItemFilter` 1671 ADD FOREIGN KEY (`Domain`) REFERENCES `NetworkDomain` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1669 1672 $Manager->Execute('ALTER TABLE `NetworkDomainItemFilter` 1670 ADD CONSTRAINT `NetworkDomainItemFilter_ibfk_1` FOREIGN KEY (`Domain`) REFERENCES `NetworkDomain` (`Id`);'); 1671 $Manager->Execute('ALTER TABLE `NetworkDomainItemFilter` 1672 ADD FOREIGN KEY (`Domain`) REFERENCES `NetworkDomainView`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1673 ADD FOREIGN KEY (`View`) REFERENCES `NetworkDomainView`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1673 1674 $Manager->Execute('ALTER TABLE `NetworkDomainView` 1674 1675 ADD FOREIGN KEY (`Domain`) REFERENCES `NetworkDomainView`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
Note:
See TracChangeset
for help on using the changeset viewer.