Changeset 679 for trunk/Common
- Timestamp:
- Jul 26, 2014, 9:25:03 PM (10 years ago)
- Location:
- trunk/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r668 r679 365 365 global $Database; 366 366 367 $DbResult = $Database->query('SELECT Id FROM Member WHERE (SELECT Member FROM NetworkDevice WHERE (SELECT Device FROM NetworkInterface WHERE LocalIP = "'.$IP.'") = NetworkDevice.Id) = Member.Id'); 367 $DbResult = $Database->query('SELECT Id FROM Member WHERE '. 368 '(SELECT Member FROM NetworkDevice WHERE (SELECT Device FROM NetworkInterface '. 369 'WHERE LocalIP = "'.$IP.'") = NetworkDevice.Id) = Member.Id'); 368 370 if($DbResult->num_rows > 0) 369 371 { -
trunk/Common/Setup/Updates.php
r678 r679 879 879 } 880 880 881 function UpdateTo679($Manager) 882 { 883 $Manager->Execute('ALTER TABLE `NetworkDevice` ADD `Product` INT NOT NULL AFTER `Id` , 884 ADD INDEX ( `Product` ) ;'); 885 } 886 881 887 class Updates 882 888 { … … 926 932 674 => array('Revision' => 676, 'Function' => 'UpdateTo676'), 927 933 676 => array('Revision' => 678, 'Function' => 'UpdateTo678'), 934 678 => array('Revision' => 679, 'Function' => 'UpdateTo679'), 928 935 )); 929 936 }
Note:
See TracChangeset
for help on using the changeset viewer.