Changeset 769
- Timestamp:
- Nov 24, 2015, 9:56:00 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r767 r769 1 1 <?php 2 2 3 $Revision = 76 7; // Subversion revision4 $DatabaseRevision = 76 5; // SQL structure revision5 $ReleaseTime = strtotime('2015-11-2 2');3 $Revision = 768; // Subversion revision 4 $DatabaseRevision = 768; // SQL structure revision 5 $ReleaseTime = strtotime('2015-11-23'); -
trunk/Common/Setup/Updates.php
r765 r769 1633 1633 "VALUES (NULL , 'Zákazická podpora', ".$DbRow['Id'].", '".$ActionId."', '1');"); 1634 1634 } 1635 } 1636 1637 function UpdateTo768($Manager) 1638 { 1639 $Manager->Execute('ALTER TABLE `NetworkDomainAlias` ADD `Domain` INT NOT NULL AFTER `Comment`;'); 1640 $Manager->Execute('ALTER TABLE `NetworkDomainAlias` ADD KEY `Domain` (`Domain`);'); 1641 $Manager->Execute('UPDATE `NetworkDomainAlias` SET `Domain`=1'); 1642 $Manager->Execute('ALTER TABLE `NetworkDomainAlias` ADD FOREIGN KEY (`Domain`) REFERENCES `NetworkDomain`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1643 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkAddressCategory` ( 1644 `Id` int(11) NOT NULL AUTO_INCREMENT, 1645 `Name` varchar(255) NOT NULL, 1646 PRIMARY KEY (`Id`) 1647 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1648 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkDomainItemFilter` ( 1649 `Id` int(11) NOT NULL AUTO_INCREMENT, 1650 `Name` varchar(255) NOT NULL, 1651 `Domain` int(11) NOT NULL, 1652 `AddressCategory` int(11) NOT NULL, 1653 `Suffix` varchar(255) NOT NULL, 1654 `View` int(11) NOT NULL, 1655 `AddressRange` varchar(255) NOT NULL 1656 PRIMARY KEY (`Id`), 1657 KEY `Domain` (`Domain`), 1658 KEY `View` (`View`) 1659 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1660 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkDomainView` ( 1661 `Id` int(11) NOT NULL AUTO_INCREMENT, 1662 `Domain` int(11) NOT NULL, 1663 `AddressRange` varchar(255) NOT NULL, 1664 `Name` varchar(255) NOT NULL, 1665 `SysName` varchar(255) NOT NULL 1666 PRIMARY KEY (`Id`), 1667 KEY `Domain` (`Domain`) 1668 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1669 $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 $Manager->Execute('ALTER TABLE `NetworkDomainView` 1674 ADD FOREIGN KEY (`Domain`) REFERENCES `NetworkDomainView`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1635 1675 } 1636 1676 … … 1713 1753 762 => array('Revision' => 763, 'Function' => 'UpdateTo763'), 1714 1754 763 => array('Revision' => 765, 'Function' => 'UpdateTo765'), 1755 765 => array('Revision' => 768, 'Function' => 'UpdateTo768'), 1715 1756 )); 1716 1757 } -
trunk/Modules/Network/Network.php
r760 r769 138 138 'Target' => array('Type' => 'String', 'Caption' => 'Cíl', 'Default' => ''), 139 139 'Comment' => array('Type' => 'String', 'Caption' => 'Komentář', 'Default' => ''), 140 ), 140 'Domain' => array('Type' => 'TNetworkDomain', 'Caption' => 'Síťová doména', 'Default' => ''), 141 ), 142 )); 143 $this->System->FormManager->RegisterFormType('TNetworkDomainAliasListDomain', array( 144 'Type' => 'ManyToOne', 145 'Table' => 'NetworkDomainAlias', 146 'Id' => 'Id', 147 'Ref' => 'Domain', 148 'Filter' => '1', 141 149 )); 142 150 $this->System->FormManager->RegisterClass('NetworkDevice', array( … … 267 275 ), 268 276 )); 277 $this->System->FormManager->RegisterClass('NetworkAddressCategory', array( 278 'Title' => 'Kategorie síťové adresy', 279 'Table' => 'NetworkAddressCategory', 280 'DefaultSortColumn' => 'Name', 281 'DefaultSortOrder' => 1, 282 'Items' => array( 283 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 284 ), 285 )); 286 $this->System->FormManager->RegisterFormType('TNetworkAddressCategory', array( 287 'Type' => 'Reference', 288 'Table' => 'NetworkAddressCategory', 289 'Id' => 'Id', 290 'Name' => 'Name', 291 'Filter' => '1', 292 )); 269 293 $this->System->FormManager->RegisterClass('NetworkDeviceConfig', array( 270 294 'Title' => 'Nastavení zařízení', … … 295 319 'TTL' => array('Type' => 'Integer', 'Caption' => 'TTL', 'Default' => '86400', 'Suffix' => 'sekund'), 296 320 'Servers' => array('Type' => 'TNetworkDomainServerList', 'Caption' => 'Servery', 'Default' => ''), 321 'Views' => array('Type' => 'TNetworkDomainViewListDomain', 'Caption' => 'Pohledy', 'Default' => ''), 322 'ItemFilters' => array('Type' => 'TNetworkDomainItemFilterListDomain', 'Caption' => 'Filtry položek', 'Default' => ''), 323 'Aliases' => array('Type' => 'TNetworkDomainAliasListDomain', 'Caption' => 'Aliasy', 'Default' => ''), 297 324 ), 298 325 )); … … 320 347 'Id' => 'Id', 321 348 'Ref' => 'Domain', 349 'Filter' => '1', 350 )); 351 $this->System->FormManager->RegisterClass('NetworkDomainView', array( 352 'Title' => 'Pohled síťové domény', 353 'Table' => 'NetworkDomainView', 354 'DefaultSortColumn' => 'Name', 355 'DefaultSortOrder' => 1, 356 'Items' => array( 357 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 358 'SysName' => array('Type' => 'String', 'Caption' => 'Systémové jméno', 'Default' => ''), 359 'Domain' => array('Type' => 'TNetworkDomain', 'Caption' => 'Doména', 'Default' => ''), 360 'AddressRange' => array('Type' => 'String', 'Caption' => 'Rozsah adres', 'Default' => ''), 361 'ItemFilters' => array('Type' => 'TNetworkDomainItemFilterListView', 'Caption' => 'Filtry položek', 'Default' => ''), 362 ), 363 )); 364 $this->System->FormManager->RegisterFormType('TNetworkDomainView', array( 365 'Type' => 'Reference', 366 'Table' => 'NetworkDomainView', 367 'Id' => 'Id', 368 'Name' => 'Name', 369 'Filter' => '1', 370 )); 371 $this->System->FormManager->RegisterFormType('TNetworkDomainViewListDomain', array( 372 'Type' => 'ManyToOne', 373 'Table' => 'NetworkDomainView', 374 'Id' => 'Id', 375 'Ref' => 'Domain', 376 'Filter' => '1', 377 )); 378 $this->System->FormManager->RegisterClass('NetworkDomainItemFilter', array( 379 'Title' => 'Filtr doménových položek', 380 'Table' => 'NetworkDomainItemFilter', 381 'DefaultSortColumn' => 'Name', 382 'DefaultSortOrder' => 1, 383 'Items' => array( 384 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 385 'Domain' => array('Type' => 'TNetworkDomain', 'Caption' => 'Domén', 'Default' => ''), 386 'AddressCategory' => array('Type' => 'TNetworkAddressCategory', 'Caption' => 'Kategorie adresy', 'Default' => ''), 387 'Suffix' => array('Type' => 'String', 'Caption' => 'Přípona jména položek', 'Default' => ''), 388 'View' => array('Type' => 'TNetworkDomainView', 'Caption' => 'Pohled', 'Default' => ''), 389 'AddressRange' => array('Type' => 'String', 'Caption' => 'Rozsah adres', 'Default' => ''), 390 ), 391 )); 392 $this->System->FormManager->RegisterFormType('TNetworkDomainItemFilterListDomain', array( 393 'Type' => 'ManyToOne', 394 'Table' => 'NetworkDomainItemFilter', 395 'Id' => 'Id', 396 'Ref' => 'Domain', 397 'Filter' => '1', 398 )); 399 $this->System->FormManager->RegisterFormType('TNetworkDomainItemFilterListView', array( 400 'Type' => 'ManyToOne', 401 'Table' => 'NetworkDomainItemFilter', 402 'Id' => 'Id', 403 'Ref' => 'View', 322 404 'Filter' => '1', 323 405 ));
Note:
See TracChangeset
for help on using the changeset viewer.