Ignore:
Timestamp:
Nov 26, 2013, 11:16:15 PM (11 years ago)
Author:
chronos
Message:
  • Added: Identification code to language list.
  • Fixed: Locale update to database used fixed language id. Now id is detected from language code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/UpdateTrace.php

    r608 r610  
    26392639}
    26402640
     2641function UpdateTo610($Manager)
     2642{
     2643  $Manager->Execute('ALTER TABLE `Language` ADD `Default` INT NOT NULL ,
     2644ADD `Code` VARCHAR( 255 ) NOT NULL ;');
     2645  $Manager->Execute('UPDATE `Language` SET `Default` = 1,
     2646`Code` = "en" WHERE `Language`.`Name` ="Angličitna";');
     2647  $Manager->Execute('UPDATE `Language` SET `Code` = "cs" WHERE `Language`.`Name` ="Čeština";');
     2648  $Manager->Execute('UPDATE `Language` SET `Code` = "sk" WHERE `Language`.`Name` ="Slovenština";');   
     2649}
     2650
     2651
    26412652$Updates = array(
    26422653        498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
     
    26522663        600 => array('Revision' => 604, 'Function' => 'UpdateTo604'),
    26532664        604 => array('Revision' => 609, 'Function' => 'UpdateTo609'),
     2665        609 => array('Revision' => 610, 'Function' => 'UpdateTo610'),
    26542666);
Note: See TracChangeset for help on using the changeset viewer.