Changeset 471 for trunk/sql/updates/470.sql
- Timestamp:
- Apr 22, 2010, 8:58:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.