Changeset 696 for trunk/Common/Setup/Updates.php
- Timestamp:
- Sep 23, 2014, 9:56:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r693 r696 911 911 $Manager->Execute('ALTER TABLE `User` DROP `PhoneNumber`;'); 912 912 } 913 914 function UpdateTo696($Manager) 915 { 916 $Manager->Execute('ALTER TABLE `NetworkInterfaceUpDown` ADD `Duration` INT NOT NULL ;'); 917 $Manager->Execute('UPDATE `NetworkInterfaceUpDown` AS `TM` SET `Duration` = IFNULL(TIMESTAMPDIFF(SECOND, 918 (SELECT `Time` FROM (SELECT * FROM `NetworkInterfaceUpDown`) AS `TA` WHERE (`TA`.`Time` < `TM`.`Time`) 919 AND (`TA`.`Interface`=`TM`.`Interface`) ORDER BY `TA`.`Time` DESC LIMIT 1), `TM`.`Time`), 0)'); 920 } 921 913 922 914 923 class Updates … … 962 971 679 => array('Revision' => 688, 'Function' => 'UpdateTo688'), 963 972 688 => array('Revision' => 692, 'Function' => 'UpdateTo692'), 973 692 => array('Revision' => 696, 'Function' => 'UpdateTo696'), 964 974 )); 965 975 }
Note:
See TracChangeset
for help on using the changeset viewer.