Changeset 535 for trunk/admin/Updates.php
- Timestamp:
- May 12, 2013, 10:47:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/Updates.php
r531 r535 266 266 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"); 267 267 $Manager->Execute("INSERT INTO `ActionIcon` (SELECT NULL AS `Id`, `IconFile` AS `Name` FROM `Action` WHERE `IconFile` != '' GROUP BY `IconFile`)"); 268 $Manager->Execute("ALTER TABLE `Action` CHANGE `IconFile` `IconFile` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL"); 268 269 $Manager->Execute("UPDATE `Action` SET `IconFile` = (SELECT `Id` FROM `ActionIcon` WHERE `ActionIcon`.`Name` = `Action`.`IconFile`) "); 269 270 $Manager->Execute("ALTER TABLE `Action` CHANGE `IconFile` `Icon` INT NULL "); … … 301 302 $Manager->Execute("INSERT INTO `MenuItem` (`Id` ,`Name` ,`Parent` ,`Action` ,`Menu`) ". 302 303 "VALUES (NULL , 'Nabídky', '23', '".$ActionId."', '1');"); 304 } 305 306 function UpdateTo535($Manager) 307 { 308 // Set all string collation to utf8 general 309 $DbResult = $Manager->Execute("SHOW TABLES"); 310 while($DbRow = $DbResult->fetch_row()) 311 { 312 $Manager->Execute("ALTER TABLE `".$DbRow[0]."` CONVERT TO CHARACTER SET utf8"); 313 } 303 314 } 304 315 … … 318 329 517 => array('Revision' => 526, 'Function' => 'UpdateTo526'), 319 330 526 => array('Revision' => 527, 'Function' => 'UpdateTo527'), 331 527 => array('Revision' => 535, 'Function' => 'UpdateTo535'), 320 332 ); 321 333
Note:
See TracChangeset
for help on using the changeset viewer.