Ignore:
Timestamp:
Apr 7, 2020, 10:15:48 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r879 r880  
    24832483
    24842484  $DbResult = $System->Database->query('SELECT `TablePrefix` FROM `Group`');
    2485   while($Group = $DbResult->fetch_assoc())
     2485  while ($Group = $DbResult->fetch_assoc())
    24862486  {
    24872487    $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` ADD FOREIGN KEY ( `Language` ) REFERENCES `Language` ('.
     
    25322532  // Set all string collation to utf8 general
    25332533  $DbResult = $Manager->Execute("SHOW TABLES");
    2534   while($DbRow = $DbResult->fetch_row())
     2534  while ($DbRow = $DbResult->fetch_row())
    25352535  {
    25362536    $Manager->Execute("ALTER TABLE `".$DbRow[0]."` CONVERT TO CHARACTER SET utf8");
     
    29462946
    29472947function UpdateTo872($Manager)
    2948 {       
     2948{
    29492949  // Allow to store IPv6 addresses
    29502950  $Manager->Execute('ALTER TABLE `UserOnline` CHANGE `IpAddress` `IpAddress` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT "";');
     
    29572957
    29582958function UpdateTo873($Manager)
    2959 {       
     2959{
    29602960  $Manager->Execute('ALTER TABLE `User` CHANGE `XP` `XP` INT(11) NOT NULL DEFAULT "0";');
    29612961  $Manager->Execute('ALTER TABLE `User` CHANGE `TranslatedCount` `TranslatedCount` INT(11) NOT NULL DEFAULT "0";');
     
    29712971  function Get()
    29722972  {
    2973     return(array(
     2973    return array(
    29742974      498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
    29752975      506 => array('Revision' => 510, 'Function' => 'UpdateTo510'),
     
    30063006      867 => array('Revision' => 872, 'Function' => 'UpdateTo872'),
    30073007      872 => array('Revision' => 873, 'Function' => 'UpdateTo873'),
    3008     ));
     3008    );
    30093009  }
    30103010}
Note: See TracChangeset for help on using the changeset viewer.