Changeset 471
- Timestamp:
- Apr 22, 2010, 8:58:41 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/form.php
r467 r471 60 60 $Language = $DbResult->fetch_assoc(); 61 61 // echo $Language['Language'].' '.$Line['Take']; 62 if($Language['Language'] <> 0) 63 echo('Převzato z: <a href="form.php?group='.$GroupId.'&ID='.$Line['Take'].'">'.$Line['Take'].'</a> <br />'); 62 63 $DbResult = $System->Database->query('SELECT `Name` FROM `Language` WHERE `Id` ='.$Language['Language']); 64 $Lang = $DbResult->fetch_assoc(); 65 66 echo('Původní text: <strong>'); 67 echo(' ID <a href="form.php?group='.$GroupId.'&ID='.$Line['Take'].'">'.$Line['Take'].'</a></strong>'); 68 echo(' ('.$Lang['Name'].')'); 69 echo(' <br />'); 64 70 } 65 71 echo('Text: '); -
trunk/sql/updates/470.sql
r470 r471 2 2 UPDATE `DbVersion` SET `Version` = 'Rev. 470' WHERE `DbVersion`.`Id` =1; 3 3 4 ALTER TABLE `ShoutBox` CHANGE `User` `UserName` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NUL ;4 ALTER TABLE `ShoutBox` CHANGE `User` `UserName` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; 5 5 ALTER TABLE `ShoutBox` ADD `User` INT NOT NULL AFTER `ID`; 6 6 ALTER TABLE `ShoutBox` ADD INDEX ( `User` ); 7 7 8 UPDATE `ShoutBox` SET `User` = (SELECT `ID` FROM `User` WHERE `User`.`Name` = `ShoutBox`.`UserName`) 8 UPDATE `ShoutBox` SET `User` = (SELECT `ID` FROM `User` WHERE `User`.`Name` = `ShoutBox`.`UserName`); 9 9
Note:
See TracChangeset
for help on using the changeset viewer.