Changeset 58 for trunk/www/sql


Ignore:
Timestamp:
Aug 4, 2009, 7:21:15 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Zobrazení souboru realmlist.wtf pro servery.
  • Opraveno: Třídy pro zpracování realmů.
Location:
trunk/www/sql/updates
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/sql/updates/54.sql

    r54 r58  
    22  `Id` int(11) NOT NULL auto_increment,
    33  `Name` varchar(255) NOT NULL,
     4  `Database` int(11) NOT NULL,
    45  `Server` int(11) NOT NULL,
    56  `NetworkPortWorldd` int(11) NOT NULL,
     
    2324ALTER TABLE `Realm` ADD FOREIGN KEY ( `Database` ) REFERENCES `Database` (`Id`);
    2425
    25 INSERT INTO `Realm` (SELECT 0 AS `Id`, "" AS `Name`, `Server`.`Id` AS `Server`, `NetworkPortWorldd`, `Motd`, "" AS `Description`, `Type`, "" AS `Homepage`, `TimeCreate`, 0 AS `Online`, `CharacterOnlineCount`, `CharacterCount`, `AccountCount`, 0 AS `Lock` FROM `Server`);
     26INSERT INTO `Realm` (SELECT 0 AS `Id`, "" AS `Name`, `Server`.`Database` AS `Database`, `Server`.`Id` AS `Server`, `NetworkPortWorldd`, `Motd`, "" AS `Description`, `Type`, "" AS `Homepage`, `TimeCreate`, 0 AS `Online`, `CharacterOnlineCount`, `CharacterCount`, `AccountCount`, 0 AS `Lock` FROM `Server`);
    2627
    2728ALTER TABLE `Server` DROP `NetworkPortWorldd` , DROP `Motd` , DROP `Type` ;
  • 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 
     1CREATE 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.