Changeset 537


Ignore:
Timestamp:
May 12, 2013, 11:21:59 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Kódování tabulek sjednoceno na utf8 general.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/UpdateTrace.php

    r525 r537  
    25322532}
    25332533
     2534function UpdateTo537($Manager)
     2535{
     2536  // Set all string collation to utf8 general
     2537  $DbResult = $Manager->Execute("SHOW TABLES");
     2538  while($DbRow = $DbResult->fetch_row())
     2539  {
     2540    $Manager->Execute("ALTER TABLE `".$DbRow[0]."` CONVERT TO CHARACTER SET utf8");
     2541  } 
     2542}
     2543
    25342544$Updates = array(
    25352545        498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
    25362546        506 => array('Revision' => 510, 'Function' => 'UpdateTo510'),
    2537         510 => array('Revision' => 524, 'Function' => 'UpdateTo524'),
     2547        510 => array('Revision' => 524, 'Function' => 'UpdateTo524'),
     2548        524 => array('Revision' => 537, 'Function' => 'UpdateTo537'),
    25382549);
    25392550
  • trunk/includes/Update.php

    r511 r537  
    6565          echo($Query.'<br/>');
    6666          flush();
    67           $this->Database->query($Query);
     67          return($this->Database->query($Query));
    6868  }
    6969}
  • trunk/includes/Version.php

    r536 r537  
    11<?php
    22
    3 $Revision = 536; // Subversion revision
    4 $DatabaseRevision = 524; // Database structure revision
    5 $ReleaseTime = '2013-04-24';
     3$Revision = 537; // Subversion revision
     4$DatabaseRevision = 537; // Database structure revision
     5$ReleaseTime = '2013-05-12';
    66
    77?>
Note: See TracChangeset for help on using the changeset viewer.