source: branches/posledni/sql/updates/650.sql

Last change on this file was 681, checked in by george, 15 years ago
  • Upraveno: Nastavení počítačů, přihlašovacích serverů a světů přesunuto do databáze z konfiguračního souboru.
File size: 2.2 KB
Line 
1ALTER TABLE `GmTeam` ADD INDEX ( `TimeFrom` ) ;
2ALTER TABLE `GmTeam` ADD INDEX ( `TimeTo` ) ;
3ALTER TABLE `GmTeam` ADD INDEX ( `RealmId` ) ;
4
5DROP TABLE `achievement` ,
6`chyby` ,
7`diskuze` ,
8`export_list` ,
9`uzivatele` ;
10
11CREATE TABLE IF NOT EXISTS `Realm` (
12 `Id` int(11) NOT NULL auto_increment,
13 `Host` int(11) NOT NULL,
14 `Logon` int(11) NOT NULL,
15 `DatabaseHost` varchar(255) NOT NULL,
16 `DatabaseUser` varchar(255) NOT NULL,
17 `DatabasePassword` varchar(255) NOT NULL,
18 `DatabaseCharacters` varchar(255) NOT NULL,
19 `DatabaseMangos` varchar(255) NOT NULL,
20 `DatabaseScriptDev2` varchar(255) NOT NULL,
21 `MaxOnlinePlayers` int(11) NOT NULL,
22 `Rate` int(11) NOT NULL,
23 `Type` varchar(255) NOT NULL,
24 `Name` varchar(255) NOT NULL,
25 `Description` text NOT NULL,
26 PRIMARY KEY (`Id`)
27) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
28
29CREATE TABLE IF NOT EXISTS `Logon` (
30 `Id` int(11) NOT NULL auto_increment,
31 `Host` int(11) NOT NULL,
32 `DatabaseUser` varchar(255) NOT NULL,
33 `DatabasePassword` varchar(255) NOT NULL,
34 `DatabaseHost` varchar(255) NOT NULL,
35 `DatabaseRealmd` varchar(255) NOT NULL,
36 `ClientVersion` varchar(255) NOT NULL,
37 PRIMARY KEY (`Id`)
38) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
39
40
41CREATE TABLE IF NOT EXISTS `Host` (
42 `Id` int(11) NOT NULL auto_increment,
43 `OS` varchar(255) NOT NULL,
44 `CPU` varchar(255) NOT NULL,
45 `Memory` varchar(255) NOT NULL,
46 `HDD` varchar(255) NOT NULL,
47 `Internet` varchar(255) NOT NULL,
48 `Address` varchar(255) NOT NULL,
49 `Statistic` varchar(255) NOT NULL,
50 PRIMARY KEY (`Id`)
51) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
52
53ALTER TABLE `Logon` ADD INDEX ( `Host` ) ;
54ALTER TABLE `Logon` ADD FOREIGN KEY ( `Host` ) REFERENCES `Host` (`Id`);
55
56ALTER TABLE `Realm` ADD INDEX ( `Host` ) ;
57ALTER TABLE `Realm` ADD INDEX ( `Logon` ) ;
58
59ALTER TABLE `Realm` ADD FOREIGN KEY ( `Host` ) REFERENCES `Host` (`Id`);
60ALTER TABLE `Realm` ADD FOREIGN KEY ( `Logon` ) REFERENCES `Logon` (`Id`);
61
62ALTER TABLE `Article` ADD INDEX ( `Time` ) ;
63
64ALTER TABLE `Realm` ADD `Online` INT NOT NULL DEFAULT '0';
65ALTER TABLE `Logon` ADD `Port` INT NOT NULL ;
66
Note: See TracBrowser for help on using the repository browser.