Changeset 676
- Timestamp:
- Jul 22, 2014, 10:25:19 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r675 r676 1 1 <?php 2 2 3 $Revision = 67 5; // Subversion revision4 $DatabaseRevision = 67 4; // SQL structure revision3 $Revision = 676; // Subversion revision 4 $DatabaseRevision = 676; // SQL structure revision 5 5 $ReleaseTime = strtotime('2014-07-22'); -
trunk/Common/Setup/Updates.php
r674 r676 840 840 } 841 841 842 function UpdateTo676($Manager) 843 { 844 $Manager->Execute('ALTER TABLE `NetworkSignal` ADD `Device` INT NULL , 845 ADD INDEX ( `Device` ) ;'); 846 $Manager->Execute('ALTER TABLE `NetworkSignal` ADD FOREIGN KEY ( `Device` ) REFERENCES `centrala_big`.`NetworkDevice` ( 847 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 848 } 849 842 850 class Updates 843 851 { … … 885 893 668 => array('Revision' => 671, 'Function' => 'UpdateTo671'), 886 894 671 => array('Revision' => 674, 'Function' => 'UpdateTo674'), 895 674 => array('Revision' => 676, 'Function' => 'UpdateTo676'), 887 896 )); 888 897 } -
trunk/Modules/Network/Network.php
r675 r676 242 242 'RateRx' => array('Type' => 'Integer', 'Caption' => 'Rychlost', 'Default' => '0', 'Suffix' => 'MHz'), 243 243 'RateTx' => array('Type' => 'Integer', 'Caption' => 'Rychlost', 'Default' => '0', 'Suffix' => 'MHz'), 244 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Měřeno z', 'Default' => '0'), 244 245 ), 245 246 )); -
trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php
r674 r676 58 58 $System->Database->insert('NetworkSignal', array('MAC' => $Properties['mac-address'], 59 59 'Value' => $Strength, 'RateRx' => $RateRx, 'RateTx' => $RateTx, 60 'Time' => TimeToMysqlDateTime($Time), 'Interface' => $Interface ));60 'Time' => TimeToMysqlDateTime($Time), 'Interface' => $Interface, 'Device' => $Device['Id'])); 61 61 /* 62 62 $DbResult = $System->Database->select('Measure', 'Id', '`Name` = "'.$Properties['mac-address'].'"');
Note:
See TracChangeset
for help on using the changeset viewer.