Changeset 601 for trunk/Common/Setup/Updates.php
- Timestamp:
- Dec 7, 2013, 10:54:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r597 r601 463 463 } 464 464 465 function UpdateTo601($Manager) 466 { 467 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkInterfaceWireless` ( 468 `Id` int(11) NOT NULL AUTO_INCREMENT, 469 `NetworkInterface` int(11) NOT NULL, 470 `TxPower` int(11) NOT NULL, 471 `CableAttenuation` int(11) NOT NULL, 472 `AntenaGain` int(11) NOT NULL, 473 `Frequency` float NOT NULL, 474 `ChannelWidth` int(11) NOT NULL, 475 `SSID` varchar(255) NOT NULL, 476 PRIMARY KEY (`Id`), 477 KEY `NetworkInterface` (`NetworkInterface`) 478 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 479 480 $Manager->Execute('ALTER TABLE `NetworkInterfaceWireless` 481 ADD CONSTRAINT `NetworkInterfaceWireless_ibfk_1` FOREIGN KEY (`NetworkInterface`) REFERENCES `NetworkInterface` (`Id`);'); 482 $Manager->Execute("INSERT INTO `centrala_big`.`Action` ( 483 `Id` ,`Name` ,`Title` ,`Type` ,`URL` ,`Group` ,`Icon` ,`PermissionOperation` , 484 `Enable`) VALUES (NULL , '', 'Wifi rozhraní', '1', '/is/?t=NetworkInterfaceWireless&a=list', NULL , NULL , NULL , '1' 485 );"); 486 $ActionId = $Manager->Database->insert_id; 487 $Manager->Execute("INSERT INTO `MenuItem` (`Id` ,`Name` ,`Parent` ,`Action` ,`Menu`) ". 488 "VALUES (NULL , 'Bezdrátové rozhraní', '1', '".$ActionId."', '1');"); 489 } 490 465 491 class Updates 466 492 { … … 492 518 584 => array('Revision' => 591, 'Function' => 'UpdateTo591'), 493 519 591 => array('Revision' => 597, 'Function' => 'UpdateTo597'), 520 597 => array('Revision' => 601, 'Function' => 'UpdateTo601'), 494 521 )); 495 522 }
Note:
See TracChangeset
for help on using the changeset viewer.