Changeset 697 for trunk/Common/Setup/Updates.php
- Timestamp:
- Sep 24, 2014, 12:40:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r696 r697 920 920 } 921 921 922 function UpdateTo697($Manager) 923 { 924 $Manager->Execute('ALTER TABLE `NetworkInterfaceUpDown` CHANGE `Duration` `Duration` INT( 11 ) NULL ;'); 925 $Manager->Execute('UPDATE `NetworkInterfaceUpDown` SET `Duration` = NULL'); 926 $Manager->Execute('UPDATE `NetworkInterfaceUpDown` AS `TM` SET `Duration` = TIMESTAMPDIFF(SECOND, 927 `TM`.`Time`, (SELECT `Time` FROM (SELECT * FROM `NetworkInterfaceUpDown`) AS `TA` WHERE (`TA`.`Time` > `TM`.`Time`) 928 AND (`TA`.`Interface`=`TM`.`Interface`) ORDER BY `TA`.`Time` ASC LIMIT 1))'); 929 } 922 930 923 931 class Updates … … 972 980 688 => array('Revision' => 692, 'Function' => 'UpdateTo692'), 973 981 692 => array('Revision' => 696, 'Function' => 'UpdateTo696'), 982 696 => array('Revision' => 697, 'Function' => 'UpdateTo697'), 974 983 )); 975 984 }
Note:
See TracChangeset
for help on using the changeset viewer.