Changeset 516 for trunk/admin/UpdateTrace.php
- Timestamp:
- Feb 16, 2013, 10:20:41 PM (12 years ago)
- File:
-
- 1 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 ;');
Note:
See TracChangeset
for help on using the changeset viewer.