Changeset 500 for trunk/sql/updates/498.sql
- Timestamp:
- Jan 31, 2013, 11:20:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sql/updates/498.sql
r498 r500 68 68 ALTER TABLE `CzWoWPackageVersion` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ( 69 69 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 70 ALTER TABLE `Log` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ; 71 UPDATE `Log` SET `User` = NULL WHERE `User` =0; 70 72 ALTER TABLE `Log` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ( 71 73 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 72 74 ALTER TABLE `Log` ADD FOREIGN KEY ( `Type` ) REFERENCES `LogType` ( 73 75 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 74 ALTER TABLE `Log` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ;75 76 ALTER TABLE `News` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ( 76 77 `ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ; … … 104 105 ALTER TABLE `ExportTask` ADD FOREIGN KEY ( `Export` ) REFERENCES `Export` ( 105 106 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ; 106 ALTER TABLE `ExportLanguage` ADD INDEX ( `Sequence` ) 107 ALTER TABLE `ExportLanguage` ADD INDEX ( `Sequence` ) ; 107 108 ALTER TABLE `ExportLanguage` ADD INDEX ( `Language` ) ; 108 109 ALTER TABLE `ExportLanguage` ADD INDEX ( `Export` ) ;
Note:
See TracChangeset
for help on using the changeset viewer.