Changeset 516
- Timestamp:
- Feb 16, 2013, 10:20:41 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/UpdateTrace.php
r510 r516 2379 2379 $Manager->Execute('UPDATE `'.$Group['TablePrefix'].'` SET `Take` = NULL WHERE `Take` =0;'); 2380 2380 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` CHANGE `ID` `ID` INT( 11 ) NOT NULL AUTO_INCREMENT; '); 2381 $Manager->Execute('UPDATE `'.$Group['TablePrefix'].'` SET `Take` = NULL WHERE NOT EXISTS (SELECT `Id` FROM ('. 2382 'SELECT `Id` FROM `'.$Group['TablePrefix'].'` ) AS `T` WHERE `T`.`Id` = `'.$Group['TablePrefix']. 2383 '`.`Take` ) AND `Take` IS NOT NULL'); 2381 2384 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` ADD FOREIGN KEY ( `Take` ) REFERENCES `'.$Group['TablePrefix'].'` ('. 2382 2385 '`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); -
trunk/statistic.php
r507 r516 10 10 function ShowStatTable() 11 11 { 12 global $System ;12 global $System, $User; 13 13 14 14 $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.