Changeset 639 for trunk/admin/UpdateTrace.php
- Timestamp:
- Dec 11, 2013, 10:21:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/UpdateTrace.php
r610 r639 2649 2649 } 2650 2650 2651 function UpdateTo639($Manager) 2652 { 2653 $Manager->Execute('ALTER TABLE `ServerList` ADD `ClientVersion` INT NOT NULL , 2654 ADD INDEX ( `ClientVersion` ) ;'); 2655 $Manager->Execute('ALTER TABLE `ServerList` ADD FOREIGN KEY ( `ClientVersion` ) REFERENCES `ClientVersion` ( 2656 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 2657 $Manager->Execute('RENAME TABLE `ServerList` TO `Server` ;'); 2658 $Manager->Execute('ALTER TABLE `Server` ADD `Description` TEXT NOT NULL ;'); 2659 $Manager->Execute('ALTER TABLE `Server` CHANGE `OnlineState` `LastOnlineTime` DATETIME NOT NULL ;'); 2660 $Manager->Execute('ALTER TABLE `Server` ADD INDEX (`UserCreate`)'); 2661 $Manager->Execute('ALTER TABLE `Server` ADD FOREIGN KEY ( `UserCreate` ) REFERENCES `User` ( 2662 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 2663 $Manager->Execute('ALTER TABLE `Server` ADD `CheckIP` VARCHAR( 16 ) NOT NULL , 2664 ADD `CheckPort` INT NOT NULL ;'); 2665 } 2651 2666 2652 2667 $Updates = array( … … 2664 2679 604 => array('Revision' => 609, 'Function' => 'UpdateTo609'), 2665 2680 609 => array('Revision' => 610, 'Function' => 'UpdateTo610'), 2681 610 => array('Revision' => 639, 'Function' => 'UpdateTo639'), 2666 2682 );
Note:
See TracChangeset
for help on using the changeset viewer.