Ignore:
Timestamp:
Dec 11, 2013, 10:21:12 PM (11 years ago)
Author:
chronos
Message:
  • Added: Make server list more general to cover also non-translated servers.
  • Added: Partialy implemented generic view named PageEdit which serve as template to present item lists, add, delete and modify items.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/UpdateTrace.php

    r610 r639  
    26492649}
    26502650
     2651function UpdateTo639($Manager)
     2652{
     2653        $Manager->Execute('ALTER TABLE `ServerList` ADD `ClientVersion` INT NOT NULL ,
     2654ADD 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 ,
     2664ADD `CheckPort` INT NOT NULL ;');   
     2665}
    26512666
    26522667$Updates = array(
     
    26642679        604 => array('Revision' => 609, 'Function' => 'UpdateTo609'),
    26652680        609 => array('Revision' => 610, 'Function' => 'UpdateTo610'),
     2681        610 => array('Revision' => 639, 'Function' => 'UpdateTo639'),
    26662682);
Note: See TracChangeset for help on using the changeset viewer.