Changeset 58 for trunk/www/sql/updates/57.sql
- Timestamp:
- Aug 4, 2009, 7:21:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/sql/updates/57.sql
r57 r58 1 RENAME TABLE `ServerLog` TO `RealmLog` ; 2 3 ALTER TABLE `RealmLog` DROP FOREIGN KEY `RealmLog_ibfk_1` ; 4 5 ALTER TABLE `RealmLog` CHANGE `Server` `Realm` INT( 11 ) NOT NULL ; 6 7 ALTER TABLE `RealmLog` ADD FOREIGN KEY ( `Realm` ) REFERENCES `Realm` (`Id`); 8 1 CREATE TABLE IF NOT EXISTS `RealmLog` ( 2 `Id` int(11) NOT NULL auto_increment, 3 `Realm` int(11) NOT NULL, 4 `Time` datetime NOT NULL, 5 `Text` text NOT NULL, 6 PRIMARY KEY (`Id`), 7 KEY `Server` (`Realm`), 8 KEY `Time` (`Time`) 9 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Note:
See TracChangeset
for help on using the changeset viewer.