source: trunk/Application/UpdateTrace.php

Last change on this file was 900, checked in by chronos, 7 months ago
  • Fixed: More form input fields validation.
  • Modified: Code cleanup.
File size: 101.8 KB
Line 
1<?php
2
3function FullInstall($Manager)
4{
5 $Manager->Execute("--
6CREATE TABLE IF NOT EXISTS `ClientVersion` (
7 `Id` int(11) NOT NULL AUTO_INCREMENT,
8 `Version` varchar(16) NOT NULL,
9 `BuildNumber` int(11) NOT NULL,
10 `ReleaseDate` date NOT NULL,
11 `Title` varchar(255) NOT NULL,
12 `Imported` int(11) NOT NULL,
13 PRIMARY KEY (`Id`),
14 KEY `BuildNumber` (`BuildNumber`),
15 KEY `Version` (`Version`),
16 KEY `ReleaseDate` (`ReleaseDate`),
17 KEY `Imported` (`Imported`)
18) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
19
20-- --------------------------------------------------------
21
22--
23-- Struktura tabulky `CzWoWPackageVersion`
24--
25
26CREATE TABLE IF NOT EXISTS `CzWoWPackageVersion` (
27 `ID` int(11) NOT NULL AUTO_INCREMENT,
28 `Version` text COLLATE utf8_czech_ci NOT NULL,
29 `Date` datetime NOT NULL,
30 `Text` text COLLATE utf8_czech_ci NOT NULL,
31 `User` int(11) NOT NULL,
32 PRIMARY KEY (`ID`),
33 KEY `user` (`User`)
34) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
35
36--
37-- RELACE PRO TABULKU `CzWoWPackageVersion`:
38-- `User`
39-- `User` -> `ID`
40--
41
42-- --------------------------------------------------------
43
44--
45-- Struktura tabulky `DbVersion`
46--
47
48CREATE TABLE IF NOT EXISTS `DbVersion` (
49 `Id` int(11) NOT NULL AUTO_INCREMENT,
50 `Revision` int(11) NOT NULL,
51 PRIMARY KEY (`Id`)
52) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
53
54-- --------------------------------------------------------
55
56--
57-- Struktura tabulky `Dictionary`
58--
59
60CREATE TABLE IF NOT EXISTS `Dictionary` (
61 `ID` int(11) NOT NULL AUTO_INCREMENT,
62 `Entry` int(11) NOT NULL,
63 `Text` varchar(255) NOT NULL,
64 `Language` int(11) NOT NULL,
65 `Description` text NOT NULL,
66 `User` int(11) DEFAULT NULL,
67 PRIMARY KEY (`ID`),
68 KEY `Language` (`Language`),
69 KEY `Entry` (`Entry`),
70 KEY `User` (`User`)
71) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
72
73--
74-- RELACE PRO TABULKU `Dictionary`:
75-- `User`
76-- `User` -> `ID`
77-- `Language`
78-- `Language` -> `Id`
79--
80
81-- --------------------------------------------------------
82
83--
84-- Struktura tabulky `Export`
85--
86
87CREATE TABLE IF NOT EXISTS `Export` (
88 `Id` int(11) NOT NULL AUTO_INCREMENT,
89 `User` int(11) NOT NULL,
90 `TimeCreate` datetime NOT NULL,
91 `Title` varchar(255) NOT NULL,
92 `WithDiacritic` tinyint(1) NOT NULL,
93 `UsedCount` int(11) NOT NULL,
94 `ClientVersion` int(11) DEFAULT NULL,
95 `OutputType` int(11) DEFAULT NULL,
96 `Description` text NOT NULL,
97 PRIMARY KEY (`Id`),
98 KEY `User` (`User`),
99 KEY `TimeCreate` (`TimeCreate`),
100 KEY `ClientVersion` (`ClientVersion`),
101 KEY `OutputType` (`OutputType`)
102) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
103
104--
105-- RELACE PRO TABULKU `Export`:
106-- `User`
107-- `User` -> `ID`
108-- `ClientVersion`
109-- `ClientVersion` -> `Id`
110-- `OutputType`
111-- `ExportOutputType` -> `Id`
112--
113
114-- --------------------------------------------------------
115
116--
117-- Struktura tabulky `ExportGroup`
118--
119
120CREATE TABLE IF NOT EXISTS `ExportGroup` (
121 `Id` int(11) NOT NULL AUTO_INCREMENT,
122 `Export` int(11) NOT NULL,
123 `Group` int(11) NOT NULL,
124 PRIMARY KEY (`Id`),
125 KEY `Export` (`Export`),
126 KEY `Group` (`Group`)
127) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
128
129--
130-- RELACE PRO TABULKU `ExportGroup`:
131-- `Group`
132-- `Group` -> `Id`
133-- `Export`
134-- `Export` -> `Id`
135--
136
137-- --------------------------------------------------------
138
139--
140-- Struktura tabulky `ExportLanguage`
141--
142
143CREATE TABLE IF NOT EXISTS `ExportLanguage` (
144 `Id` int(11) NOT NULL AUTO_INCREMENT,
145 `Export` int(11) NOT NULL,
146 `Language` int(11) NOT NULL,
147 `Sequence` int(11) NOT NULL,
148 PRIMARY KEY (`Id`),
149 KEY `Language` (`Language`),
150 KEY `Export` (`Export`),
151 KEY `Sequence` (`Sequence`)
152) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
153
154--
155-- RELACE PRO TABULKU `ExportLanguage`:
156-- `Export`
157-- `Export` -> `Id`
158-- `Language`
159-- `Language` -> `Id`
160--
161
162-- --------------------------------------------------------
163
164--
165-- Struktura tabulky `ExportOutputType`
166--
167
168CREATE TABLE IF NOT EXISTS `ExportOutputType` (
169 `Id` int(11) NOT NULL AUTO_INCREMENT,
170 `Name` varchar(255) NOT NULL,
171 PRIMARY KEY (`Id`)
172) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
173
174-- --------------------------------------------------------
175
176--
177-- Struktura tabulky `ExportTask`
178--
179
180CREATE TABLE IF NOT EXISTS `ExportTask` (
181 `Id` int(11) NOT NULL AUTO_INCREMENT,
182 `TimeStart` datetime NOT NULL,
183 `TimeFinish` datetime DEFAULT NULL,
184 `Export` int(11) NOT NULL,
185 PRIMARY KEY (`Id`),
186 KEY `Export` (`Export`)
187) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
188
189--
190-- RELACE PRO TABULKU `ExportTask`:
191-- `Export`
192-- `Export` -> `Id`
193--
194
195-- --------------------------------------------------------
196
197--
198-- Struktura tabulky `ExportUser`
199--
200
201CREATE TABLE IF NOT EXISTS `ExportUser` (
202 `Id` int(11) NOT NULL AUTO_INCREMENT,
203 `Export` int(11) NOT NULL,
204 `User` int(11) NOT NULL,
205 `Sequence` int(11) NOT NULL,
206 PRIMARY KEY (`Id`),
207 KEY `Export` (`Export`),
208 KEY `User` (`User`),
209 KEY `Sequence` (`Sequence`)
210) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
211
212--
213-- RELACE PRO TABULKU `ExportUser`:
214-- `Export`
215-- `Export` -> `Id`
216-- `User`
217-- `User` -> `ID`
218--
219
220-- --------------------------------------------------------
221
222--
223-- Struktura tabulky `ExportVersion`
224--
225
226CREATE TABLE IF NOT EXISTS `ExportVersion` (
227 `Id` int(11) NOT NULL AUTO_INCREMENT,
228 `ExportType` int(11) NOT NULL,
229 `ClientVersion` int(11) NOT NULL,
230 PRIMARY KEY (`Id`),
231 KEY `ExportType` (`ExportType`),
232 KEY `ClientVersion` (`ClientVersion`)
233) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
234
235--
236-- RELACE PRO TABULKU `ExportVersion`:
237-- `ExportType`
238-- `ExportOutputType` -> `Id`
239-- `ClientVersion`
240-- `ClientVersion` -> `Id`
241--
242
243-- --------------------------------------------------------
244
245--
246-- Struktura tabulky `Group`
247--
248
249CREATE TABLE IF NOT EXISTS `Group` (
250 `Id` int(11) NOT NULL AUTO_INCREMENT,
251 `Name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
252 `TablePrefix` varchar(255) COLLATE utf8_czech_ci NOT NULL,
253 `PrimaryKeyItem` varchar(255) COLLATE utf8_czech_ci NOT NULL DEFAULT 'Entry',
254 `SourceType` enum('dbc','lua','sql') COLLATE utf8_czech_ci NOT NULL DEFAULT 'sql',
255 `MangosDatabase` varchar(255) COLLATE utf8_czech_ci NOT NULL,
256 `MangosTable` varchar(255) COLLATE utf8_czech_ci NOT NULL,
257 `MangosTableIndex` varchar(255) COLLATE utf8_czech_ci NOT NULL,
258 `DBCFileName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
259 `DBCIndex` varchar(255) COLLATE utf8_czech_ci NOT NULL DEFAULT '0',
260 `WowheadName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
261 `LuaFileName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
262 `LuaMPQFolder` varchar(255) COLLATE utf8_czech_ci NOT NULL,
263 `LastImport` datetime NOT NULL,
264 `LastVersion` int(11) NOT NULL,
265 PRIMARY KEY (`Id`)
266) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
267
268-- --------------------------------------------------------
269
270--
271-- Struktura tabulky `GroupItem`
272--
273
274CREATE TABLE IF NOT EXISTS `GroupItem` (
275 `Id` int(11) NOT NULL AUTO_INCREMENT,
276 `Group` int(11) NOT NULL,
277 `Sequence` int(11) NOT NULL,
278 `Name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
279 `Column` varchar(255) COLLATE utf8_czech_ci NOT NULL,
280 `Visible` tinyint(1) NOT NULL DEFAULT '1',
281 `MangosColumn` varchar(255) COLLATE utf8_czech_ci NOT NULL,
282 `AddonFileName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
283 PRIMARY KEY (`Id`),
284 KEY `Group` (`Group`),
285 KEY `Visible` (`Visible`),
286 KEY `Sequence` (`Sequence`)
287) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
288
289--
290-- RELACE PRO TABULKU `GroupItem`:
291-- `Group`
292-- `Group` -> `Id`
293--
294
295-- --------------------------------------------------------
296
297--
298-- Struktura tabulky `GroupItemDBC`
299--
300
301CREATE TABLE IF NOT EXISTS `GroupItemDBC` (
302 `Id` int(11) NOT NULL AUTO_INCREMENT,
303 `ClientVersion` int(11) NOT NULL,
304 `GroupItem` int(11) NOT NULL,
305 `ColumnIndex` int(11) NOT NULL,
306 PRIMARY KEY (`Id`),
307 UNIQUE KEY `ClientVersion_2` (`ClientVersion`,`GroupItem`),
308 KEY `ClientVersion` (`ClientVersion`),
309 KEY `GroupItem` (`GroupItem`)
310) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
311
312--
313-- RELACE PRO TABULKU `GroupItemDBC`:
314-- `ClientVersion`
315-- `ClientVersion` -> `Id`
316-- `GroupItem`
317-- `GroupItem` -> `Id`
318--
319
320-- --------------------------------------------------------
321
322--
323-- Struktura tabulky `Language`
324--
325
326CREATE TABLE IF NOT EXISTS `Language` (
327 `Id` int(11) NOT NULL AUTO_INCREMENT,
328 `Name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
329 `Enabled` tinyint(1) NOT NULL DEFAULT '1',
330 PRIMARY KEY (`Id`),
331 KEY `Enabled` (`Enabled`)
332) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
333
334-- --------------------------------------------------------
335
336--
337-- Struktura tabulky `Log`
338--
339
340CREATE TABLE IF NOT EXISTS `Log` (
341 `ID` int(11) NOT NULL AUTO_INCREMENT,
342 `User` int(11) DEFAULT NULL,
343 `Type` int(11) NOT NULL,
344 `Text` text NOT NULL,
345 `Date` datetime NOT NULL,
346 `IP` text NOT NULL,
347 PRIMARY KEY (`ID`),
348 KEY `user` (`User`),
349 KEY `type` (`Type`),
350 KEY `date` (`Date`)
351) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
352
353--
354-- RELACE PRO TABULKU `Log`:
355-- `User`
356-- `User` -> `ID`
357-- `Type`
358-- `LogType` -> `Id`
359--
360
361-- --------------------------------------------------------
362
363--
364-- Struktura tabulky `LogType`
365--
366
367CREATE TABLE IF NOT EXISTS `LogType` (
368 `Id` int(11) NOT NULL AUTO_INCREMENT,
369 `Name` varchar(255) NOT NULL,
370 `Color` varchar(255) NOT NULL,
371 `Description` varchar(255) NOT NULL,
372 PRIMARY KEY (`Id`)
373) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
374
375-- --------------------------------------------------------
376
377--
378-- Struktura tabulky `News`
379--
380
381CREATE TABLE IF NOT EXISTS `News` (
382 `Id` int(11) NOT NULL AUTO_INCREMENT,
383 `Time` datetime NOT NULL,
384 `User` int(11) NOT NULL,
385 `Text` text NOT NULL,
386 PRIMARY KEY (`Id`),
387 KEY `Time` (`Time`),
388 KEY `User` (`User`)
389) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
390
391--
392-- RELACE PRO TABULKU `News`:
393-- `User`
394-- `User` -> `ID`
395--
396
397-- --------------------------------------------------------
398
399--
400-- Struktura tabulky `Referrer`
401--
402
403CREATE TABLE IF NOT EXISTS `Referrer` (
404 `Id` int(11) NOT NULL AUTO_INCREMENT,
405 `DateFirst` datetime NOT NULL,
406 `DateLast` datetime NOT NULL,
407 `Web` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
408 `Show` int(11) NOT NULL DEFAULT '1',
409 `Description` text NOT NULL,
410 `LastURL` varchar(255) NOT NULL,
411 `Hits` int(11) NOT NULL,
412 `Parent` int(11) DEFAULT NULL,
413 PRIMARY KEY (`Id`),
414 UNIQUE KEY `Web` (`Web`),
415 KEY `Show` (`Show`),
416 KEY `DateLast` (`DateLast`),
417 KEY `Parent` (`Parent`),
418 KEY `Hits` (`Hits`),
419 KEY `DateFirst` (`DateFirst`)
420) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
421
422--
423-- RELACE PRO TABULKU `Referrer`:
424-- `Parent`
425-- `Referrer` -> `Id`
426--
427
428-- --------------------------------------------------------
429
430--
431-- Struktura tabulky `ServerList`
432--
433
434CREATE TABLE IF NOT EXISTS `ServerList` (
435 `Id` int(11) NOT NULL AUTO_INCREMENT,
436 `Name` varchar(255) NOT NULL,
437 `URL` varchar(255) NOT NULL,
438 `Parts` varchar(255) NOT NULL,
439 `TimeCreate` datetime NOT NULL,
440 `UserCreate` int(11) NOT NULL,
441 `OnlineState` int(11) NOT NULL,
442 `XPRate` int(11) NOT NULL,
443 `GameplayStyle` enum('normal','pvp','rp','rppvp') NOT NULL,
444 PRIMARY KEY (`Id`)
445) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
446
447-- --------------------------------------------------------
448
449--
450-- Struktura tabulky `ShoutBox`
451--
452
453CREATE TABLE IF NOT EXISTS `ShoutBox` (
454 `ID` int(11) NOT NULL AUTO_INCREMENT,
455 `User` int(11) DEFAULT NULL,
456 `UserName` text NOT NULL,
457 `Text` text NOT NULL,
458 `Date` datetime NOT NULL,
459 `IP` text NOT NULL,
460 PRIMARY KEY (`ID`),
461 KEY `date` (`Date`),
462 KEY `User` (`User`)
463) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
464
465--
466-- RELACE PRO TABULKU `ShoutBox`:
467-- `User`
468-- `User` -> `ID`
469--
470
471-- --------------------------------------------------------
472
473--
474-- Struktura tabulky `Team`
475--
476
477CREATE TABLE IF NOT EXISTS `Team` (
478 `Id` int(11) NOT NULL AUTO_INCREMENT,
479 `Name` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
480 `Description` text CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
481 `URL` varchar(255) NOT NULL,
482 `TimeCreate` datetime NOT NULL,
483 `Leader` int(11) NOT NULL,
484 PRIMARY KEY (`Id`),
485 KEY `Leader` (`Leader`),
486 KEY `TimeCreate` (`TimeCreate`)
487) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
488
489--
490-- RELACE PRO TABULKU `Team`:
491-- `Leader`
492-- `User` -> `ID`
493--
494
495-- --------------------------------------------------------
496
497--
498-- Struktura tabulky `TextAchievement`
499--
500
501CREATE TABLE IF NOT EXISTS `TextAchievement` (
502 `ID` int(11) NOT NULL AUTO_INCREMENT,
503 `Entry` int(11) NOT NULL,
504 `Language` int(11) NOT NULL DEFAULT '0',
505 `User` int(11) DEFAULT NULL,
506 `Complete` int(11) NOT NULL,
507 `CompleteParts` int(11) NOT NULL,
508 `Take` int(11) DEFAULT NULL,
509 `Name` text NOT NULL,
510 `Description` text NOT NULL,
511 `Reward` text NOT NULL,
512 `VersionStart` int(11) NOT NULL DEFAULT '8606',
513 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
514 `ModifyTime` datetime NOT NULL,
515 PRIMARY KEY (`ID`),
516 KEY `entry` (`Entry`),
517 KEY `User` (`User`),
518 KEY `Take` (`Take`),
519 KEY `Language` (`Language`),
520 KEY `Complete` (`Complete`),
521 KEY `VersionStart` (`VersionStart`),
522 KEY `VersionEnd` (`VersionEnd`),
523 KEY `ModifyTime` (`ModifyTime`)
524) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3389 ;
525
526--
527-- RELACE PRO TABULKU `TextAchievement`:
528-- `Take`
529-- `TextAchievement` -> `ID`
530-- `Language`
531-- `Language` -> `Id`
532-- `User`
533-- `User` -> `ID`
534--
535
536-- --------------------------------------------------------
537
538--
539-- Struktura tabulky `TextAchievementCategory`
540--
541
542CREATE TABLE IF NOT EXISTS `TextAchievementCategory` (
543 `ID` int(11) NOT NULL AUTO_INCREMENT,
544 `Entry` int(11) NOT NULL,
545 `Language` int(11) NOT NULL DEFAULT '0',
546 `User` int(11) DEFAULT NULL,
547 `Complete` int(11) NOT NULL,
548 `CompleteParts` int(11) NOT NULL,
549 `Take` int(11) DEFAULT NULL,
550 `Name` text NOT NULL,
551 `VersionStart` int(11) NOT NULL DEFAULT '8606',
552 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
553 `ModifyTime` datetime NOT NULL,
554 PRIMARY KEY (`ID`),
555 KEY `entry` (`Entry`),
556 KEY `User` (`User`),
557 KEY `Take` (`Take`),
558 KEY `Language` (`Language`),
559 KEY `Complete` (`Complete`),
560 KEY `VersionStart` (`VersionStart`),
561 KEY `VersionEnd` (`VersionEnd`),
562 KEY `ModifyTime` (`ModifyTime`)
563) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=276 ;
564
565--
566-- RELACE PRO TABULKU `TextAchievementCategory`:
567-- `Take`
568-- `TextAchievementCategory` -> `ID`
569-- `Language`
570-- `Language` -> `Id`
571-- `User`
572-- `User` -> `ID`
573--
574
575-- --------------------------------------------------------
576
577--
578-- Struktura tabulky `TextAchievementCriteria`
579--
580
581CREATE TABLE IF NOT EXISTS `TextAchievementCriteria` (
582 `ID` int(11) NOT NULL AUTO_INCREMENT,
583 `Entry` int(11) NOT NULL,
584 `Language` int(11) NOT NULL DEFAULT '0',
585 `User` int(11) DEFAULT NULL,
586 `Complete` int(11) NOT NULL,
587 `CompleteParts` int(11) NOT NULL,
588 `Take` int(11) DEFAULT NULL,
589 `Text` text NOT NULL,
590 `VersionStart` int(11) NOT NULL DEFAULT '8606',
591 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
592 `ModifyTime` datetime NOT NULL,
593 PRIMARY KEY (`ID`),
594 KEY `entry` (`Entry`),
595 KEY `User` (`User`),
596 KEY `Take` (`Take`),
597 KEY `Language` (`Language`),
598 KEY `Complete` (`Complete`),
599 KEY `VersionStart` (`VersionStart`),
600 KEY `VersionEnd` (`VersionEnd`),
601 KEY `ModifyTime` (`ModifyTime`)
602) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13494 ;
603
604--
605-- RELACE PRO TABULKU `TextAchievementCriteria`:
606-- `Take`
607-- `TextAchievementCriteria` -> `ID`
608-- `Language`
609-- `Language` -> `Id`
610-- `User`
611-- `User` -> `ID`
612--
613
614-- --------------------------------------------------------
615
616--
617-- Struktura tabulky `TextArea`
618--
619
620CREATE TABLE IF NOT EXISTS `TextArea` (
621 `ID` int(11) NOT NULL AUTO_INCREMENT,
622 `Entry` int(11) NOT NULL,
623 `Name` varchar(255) NOT NULL,
624 `Language` int(11) NOT NULL DEFAULT '0',
625 `User` int(11) DEFAULT NULL,
626 `Complete` int(11) NOT NULL,
627 `CompleteParts` int(11) NOT NULL,
628 `Take` int(11) DEFAULT NULL,
629 `VersionStart` int(11) NOT NULL,
630 `VersionEnd` int(11) NOT NULL,
631 `ModifyTime` datetime NOT NULL,
632 PRIMARY KEY (`ID`),
633 KEY `Entry` (`Entry`),
634 KEY `User` (`User`),
635 KEY `Take` (`Take`),
636 KEY `Language` (`Language`),
637 KEY `Complete` (`Complete`),
638 KEY `VersionStart` (`VersionStart`),
639 KEY `VersionEnd` (`VersionEnd`),
640 KEY `ModifyTime` (`ModifyTime`)
641) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6257 ;
642
643--
644-- RELACE PRO TABULKU `TextArea`:
645-- `Take`
646-- `TextArea` -> `ID`
647-- `Language`
648-- `Language` -> `Id`
649-- `User`
650-- `User` -> `ID`
651--
652
653-- --------------------------------------------------------
654
655--
656-- Struktura tabulky `TextAreaPOI`
657--
658
659CREATE TABLE IF NOT EXISTS `TextAreaPOI` (
660 `ID` int(11) NOT NULL AUTO_INCREMENT,
661 `Entry` int(11) NOT NULL,
662 `Name` varchar(255) NOT NULL,
663 `State` text NOT NULL,
664 `Language` int(11) NOT NULL DEFAULT '0',
665 `User` int(11) DEFAULT NULL,
666 `Complete` int(11) NOT NULL,
667 `CompleteParts` int(11) NOT NULL,
668 `Take` int(11) DEFAULT NULL,
669 `VersionStart` int(11) NOT NULL DEFAULT '8606',
670 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
671 `ModifyTime` datetime NOT NULL,
672 PRIMARY KEY (`ID`),
673 KEY `Entry` (`Entry`),
674 KEY `User` (`User`),
675 KEY `Take` (`Take`),
676 KEY `Language` (`Language`),
677 KEY `Complete` (`Complete`),
678 KEY `VersionStart` (`VersionStart`),
679 KEY `VersionEnd` (`VersionEnd`),
680 KEY `ModifyTime` (`ModifyTime`)
681) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5073 ;
682
683--
684-- RELACE PRO TABULKU `TextAreaPOI`:
685-- `Take`
686-- `TextAreaPOI` -> `ID`
687-- `Language`
688-- `Language` -> `Id`
689-- `User`
690-- `User` -> `ID`
691--
692
693-- --------------------------------------------------------
694
695--
696-- Struktura tabulky `TextAreaTriggerTavern`
697--
698
699CREATE TABLE IF NOT EXISTS `TextAreaTriggerTavern` (
700 `ID` int(11) NOT NULL AUTO_INCREMENT,
701 `Entry` int(11) NOT NULL,
702 `Language` int(11) NOT NULL DEFAULT '0',
703 `User` int(11) DEFAULT NULL,
704 `Complete` int(11) NOT NULL,
705 `CompleteParts` int(11) NOT NULL,
706 `Take` int(11) DEFAULT NULL,
707 `Name` text NOT NULL,
708 `VersionStart` int(11) NOT NULL DEFAULT '8606',
709 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
710 `ModifyTime` datetime NOT NULL,
711 PRIMARY KEY (`ID`),
712 KEY `entry` (`Entry`),
713 KEY `User` (`User`),
714 KEY `Take` (`Take`),
715 KEY `Language` (`Language`),
716 KEY `Complete` (`Complete`),
717 KEY `VersionStart` (`VersionStart`),
718 KEY `VersionEnd` (`VersionEnd`),
719 KEY `ModifyTime` (`ModifyTime`)
720) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=222 ;
721
722--
723-- RELACE PRO TABULKU `TextAreaTriggerTavern`:
724-- `Take`
725-- `TextAreaTriggerTavern` -> `ID`
726-- `Language`
727-- `Language` -> `Id`
728-- `User`
729-- `User` -> `ID`
730--
731
732-- --------------------------------------------------------
733
734--
735-- Struktura tabulky `TextAreaTriggerTeleport`
736--
737
738CREATE TABLE IF NOT EXISTS `TextAreaTriggerTeleport` (
739 `ID` int(11) NOT NULL AUTO_INCREMENT,
740 `Entry` int(11) NOT NULL,
741 `Language` int(11) NOT NULL DEFAULT '0',
742 `User` int(11) DEFAULT NULL,
743 `Complete` int(11) NOT NULL,
744 `CompleteParts` int(11) NOT NULL,
745 `Take` int(11) DEFAULT NULL,
746 `Name` text NOT NULL,
747 `VersionStart` int(11) NOT NULL DEFAULT '8606',
748 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
749 `ModifyTime` datetime NOT NULL,
750 PRIMARY KEY (`ID`),
751 KEY `entry` (`Entry`),
752 KEY `User` (`User`),
753 KEY `Take` (`Take`),
754 KEY `Language` (`Language`),
755 KEY `Complete` (`Complete`),
756 KEY `VersionStart` (`VersionStart`),
757 KEY `VersionEnd` (`VersionEnd`),
758 KEY `ModifyTime` (`ModifyTime`)
759) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=511 ;
760
761--
762-- RELACE PRO TABULKU `TextAreaTriggerTeleport`:
763-- `Take`
764-- `TextAreaTriggerTeleport` -> `ID`
765-- `Language`
766-- `Language` -> `Id`
767-- `User`
768-- `User` -> `ID`
769--
770
771-- --------------------------------------------------------
772
773--
774-- Struktura tabulky `TextCharacterClass`
775--
776
777CREATE TABLE IF NOT EXISTS `TextCharacterClass` (
778 `ID` int(11) NOT NULL AUTO_INCREMENT,
779 `Entry` int(11) NOT NULL,
780 `Name` varchar(255) NOT NULL,
781 `ShortCut` varchar(255) NOT NULL,
782 `Language` int(11) NOT NULL DEFAULT '0',
783 `User` int(11) DEFAULT NULL,
784 `Complete` int(11) NOT NULL,
785 `CompleteParts` int(11) NOT NULL,
786 `Take` int(11) DEFAULT NULL,
787 `VersionStart` int(11) NOT NULL,
788 `VersionEnd` int(11) NOT NULL,
789 `ModifyTime` datetime NOT NULL,
790 PRIMARY KEY (`ID`),
791 KEY `Entry` (`Entry`),
792 KEY `User` (`User`),
793 KEY `Take` (`Take`),
794 KEY `Language` (`Language`),
795 KEY `Complete` (`Complete`),
796 KEY `VersionStart` (`VersionStart`),
797 KEY `VersionEnd` (`VersionEnd`),
798 KEY `ModifyTime` (`ModifyTime`)
799) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=47 ;
800
801--
802-- RELACE PRO TABULKU `TextCharacterClass`:
803-- `Take`
804-- `TextCharacterClass` -> `ID`
805-- `Language`
806-- `Language` -> `Id`
807-- `User`
808-- `User` -> `ID`
809--
810
811-- --------------------------------------------------------
812
813--
814-- Struktura tabulky `TextCharacterRace`
815--
816
817CREATE TABLE IF NOT EXISTS `TextCharacterRace` (
818 `ID` int(11) NOT NULL AUTO_INCREMENT,
819 `Entry` int(11) NOT NULL,
820 `ShortCut` varchar(255) NOT NULL,
821 `Name1` varchar(255) NOT NULL,
822 `Name2` varchar(255) NOT NULL,
823 `Facial1` varchar(255) NOT NULL,
824 `Facial2` varchar(255) NOT NULL,
825 `Facial3` varchar(255) NOT NULL,
826 `Language` int(11) NOT NULL DEFAULT '0',
827 `User` int(11) DEFAULT NULL,
828 `Complete` int(11) NOT NULL,
829 `CompleteParts` int(11) NOT NULL,
830 `Take` int(11) DEFAULT NULL,
831 `VersionStart` int(11) NOT NULL DEFAULT '8606',
832 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
833 `ModifyTime` datetime NOT NULL,
834 PRIMARY KEY (`ID`),
835 KEY `Entry` (`Entry`),
836 KEY `User` (`User`),
837 KEY `Take` (`Take`),
838 KEY `Language` (`Language`),
839 KEY `Complete` (`Complete`),
840 KEY `VersionStart` (`VersionStart`),
841 KEY `VersionEnd` (`VersionEnd`),
842 KEY `ModifyTime` (`ModifyTime`)
843) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=115 ;
844
845--
846-- RELACE PRO TABULKU `TextCharacterRace`:
847-- `Take`
848-- `TextCharacterRace` -> `ID`
849-- `Language`
850-- `Language` -> `Id`
851-- `User`
852-- `User` -> `ID`
853--
854
855-- --------------------------------------------------------
856
857--
858-- Struktura tabulky `TextChatChannel`
859--
860
861CREATE TABLE IF NOT EXISTS `TextChatChannel` (
862 `ID` int(11) NOT NULL AUTO_INCREMENT,
863 `Entry` int(11) NOT NULL,
864 `Name` varchar(255) NOT NULL,
865 `ShortName` text NOT NULL,
866 `Language` int(11) NOT NULL DEFAULT '0',
867 `User` int(11) DEFAULT NULL,
868 `Complete` int(11) NOT NULL,
869 `CompleteParts` int(11) NOT NULL,
870 `Take` int(11) DEFAULT NULL,
871 `VersionStart` int(11) NOT NULL,
872 `VersionEnd` int(11) NOT NULL,
873 `ModifyTime` datetime NOT NULL,
874 PRIMARY KEY (`ID`),
875 KEY `Entry` (`Entry`),
876 KEY `User` (`User`),
877 KEY `Take` (`Take`),
878 KEY `Language` (`Language`),
879 KEY `Complete` (`Complete`),
880 KEY `VersionStart` (`VersionStart`),
881 KEY `VersionEnd` (`VersionEnd`),
882 KEY `ModifyTime` (`ModifyTime`)
883) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ;
884
885--
886-- RELACE PRO TABULKU `TextChatChannel`:
887-- `Take`
888-- `TextChatChannel` -> `ID`
889-- `Language`
890-- `Language` -> `Id`
891-- `User`
892-- `User` -> `ID`
893--
894
895-- --------------------------------------------------------
896
897--
898-- Struktura tabulky `TextCreature`
899--
900
901CREATE TABLE IF NOT EXISTS `TextCreature` (
902 `ID` int(11) NOT NULL AUTO_INCREMENT,
903 `Entry` int(11) NOT NULL,
904 `Name` text NOT NULL,
905 `SubName` text NOT NULL,
906 `Language` int(11) NOT NULL DEFAULT '0',
907 `User` int(11) DEFAULT NULL,
908 `Complete` int(11) NOT NULL,
909 `CompleteParts` int(11) NOT NULL,
910 `Take` int(11) DEFAULT NULL,
911 `VersionStart` int(11) NOT NULL DEFAULT '8606',
912 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
913 `ModifyTime` datetime NOT NULL,
914 PRIMARY KEY (`ID`),
915 KEY `entry` (`Entry`),
916 KEY `User` (`User`),
917 KEY `Take` (`Take`),
918 KEY `Complete` (`Complete`),
919 KEY `Language` (`Language`),
920 KEY `VersionStart` (`VersionStart`),
921 KEY `VersionEnd` (`VersionEnd`),
922 KEY `ModifyTime` (`ModifyTime`)
923) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=69801 ;
924
925--
926-- RELACE PRO TABULKU `TextCreature`:
927-- `Take`
928-- `TextCreature` -> `ID`
929-- `Language`
930-- `Language` -> `Id`
931-- `User`
932-- `User` -> `ID`
933--
934
935-- --------------------------------------------------------
936
937--
938-- Struktura tabulky `TextCreatureType`
939--
940
941CREATE TABLE IF NOT EXISTS `TextCreatureType` (
942 `ID` int(11) NOT NULL AUTO_INCREMENT,
943 `Entry` int(11) NOT NULL,
944 `Name` varchar(255) NOT NULL,
945 `Language` int(11) NOT NULL DEFAULT '0',
946 `User` int(11) DEFAULT NULL,
947 `Complete` int(11) NOT NULL,
948 `CompleteParts` int(11) NOT NULL,
949 `Take` int(11) DEFAULT NULL,
950 `VersionStart` int(11) NOT NULL,
951 `VersionEnd` int(11) NOT NULL,
952 `ModifyTime` datetime NOT NULL,
953 PRIMARY KEY (`ID`),
954 KEY `Entry` (`Entry`),
955 KEY `User` (`User`),
956 KEY `Take` (`Take`),
957 KEY `Language` (`Language`),
958 KEY `Complete` (`Complete`),
959 KEY `VersionStart` (`VersionStart`),
960 KEY `VersionEnd` (`VersionEnd`),
961 KEY `ModifyTime` (`ModifyTime`)
962) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=72 ;
963
964--
965-- RELACE PRO TABULKU `TextCreatureType`:
966-- `Take`
967-- `TextCreatureType` -> `ID`
968-- `Language`
969-- `Language` -> `Id`
970-- `User`
971-- `User` -> `ID`
972--
973
974-- --------------------------------------------------------
975
976--
977-- Struktura tabulky `TextEmote`
978--
979
980CREATE TABLE IF NOT EXISTS `TextEmote` (
981 `ID` int(11) NOT NULL AUTO_INCREMENT,
982 `Entry` int(11) NOT NULL,
983 `Text` varchar(255) NOT NULL,
984 `Language` int(11) NOT NULL DEFAULT '0',
985 `User` int(11) DEFAULT NULL,
986 `Complete` int(11) NOT NULL,
987 `CompleteParts` int(11) NOT NULL,
988 `Take` int(11) DEFAULT NULL,
989 `VersionStart` int(11) NOT NULL,
990 `VersionEnd` int(11) NOT NULL,
991 `ModifyTime` datetime NOT NULL,
992 PRIMARY KEY (`ID`),
993 KEY `Entry` (`Entry`),
994 KEY `User` (`User`),
995 KEY `Take` (`Take`),
996 KEY `Language` (`Language`),
997 KEY `Complete` (`Complete`),
998 KEY `VersionStart` (`VersionStart`),
999 KEY `VersionEnd` (`VersionEnd`),
1000 KEY `ModifyTime` (`ModifyTime`)
1001) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2677 ;
1002
1003--
1004-- RELACE PRO TABULKU `TextEmote`:
1005-- `Take`
1006-- `TextEmote` -> `ID`
1007-- `Language`
1008-- `Language` -> `Id`
1009-- `User`
1010-- `User` -> `ID`
1011--
1012
1013-- --------------------------------------------------------
1014
1015--
1016-- Struktura tabulky `TextGameObject`
1017--
1018
1019CREATE TABLE IF NOT EXISTS `TextGameObject` (
1020 `ID` int(11) NOT NULL AUTO_INCREMENT,
1021 `Entry` int(11) NOT NULL,
1022 `Name` text NOT NULL,
1023 `CastBarCaption` text NOT NULL,
1024 `Language` int(11) NOT NULL DEFAULT '0',
1025 `User` int(11) DEFAULT NULL,
1026 `Complete` int(11) NOT NULL,
1027 `CompleteParts` int(11) NOT NULL,
1028 `Take` int(11) DEFAULT NULL,
1029 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1030 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1031 `ModifyTime` datetime NOT NULL,
1032 PRIMARY KEY (`ID`),
1033 KEY `entry` (`Entry`),
1034 KEY `User` (`User`),
1035 KEY `Take` (`Take`),
1036 KEY `Complete` (`Complete`),
1037 KEY `Language` (`Language`),
1038 KEY `VersionStart` (`VersionStart`),
1039 KEY `VersionEnd` (`VersionEnd`),
1040 KEY `ModifyTime` (`ModifyTime`)
1041) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=112722 ;
1042
1043--
1044-- RELACE PRO TABULKU `TextGameObject`:
1045-- `Take`
1046-- `TextGameObject` -> `ID`
1047-- `Language`
1048-- `Language` -> `Id`
1049-- `User`
1050-- `User` -> `ID`
1051--
1052
1053-- --------------------------------------------------------
1054
1055--
1056-- Struktura tabulky `TextGameTip`
1057--
1058
1059CREATE TABLE IF NOT EXISTS `TextGameTip` (
1060 `ID` int(11) NOT NULL AUTO_INCREMENT,
1061 `Entry` int(11) NOT NULL,
1062 `Text` text NOT NULL,
1063 `Language` int(11) NOT NULL DEFAULT '0',
1064 `User` int(11) DEFAULT NULL,
1065 `Complete` int(11) NOT NULL,
1066 `CompleteParts` int(11) NOT NULL,
1067 `Take` int(11) DEFAULT NULL,
1068 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1069 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1070 `ModifyTime` datetime NOT NULL,
1071 PRIMARY KEY (`ID`),
1072 KEY `entry` (`Entry`),
1073 KEY `User` (`User`),
1074 KEY `Take` (`Take`),
1075 KEY `Language` (`Language`),
1076 KEY `Complete` (`Complete`),
1077 KEY `VersionStart` (`VersionStart`),
1078 KEY `VersionEnd` (`VersionEnd`),
1079 KEY `ModifyTime` (`ModifyTime`)
1080) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=432 ;
1081
1082--
1083-- RELACE PRO TABULKU `TextGameTip`:
1084-- `Take`
1085-- `TextGameTip` -> `ID`
1086-- `Language`
1087-- `Language` -> `Id`
1088-- `User`
1089-- `User` -> `ID`
1090--
1091
1092-- --------------------------------------------------------
1093
1094--
1095-- Struktura tabulky `TextGlobalString`
1096--
1097
1098CREATE TABLE IF NOT EXISTS `TextGlobalString` (
1099 `ID` int(11) NOT NULL AUTO_INCREMENT,
1100 `Entry` int(11) NOT NULL,
1101 `Language` int(11) NOT NULL DEFAULT '0',
1102 `User` int(11) DEFAULT NULL,
1103 `Complete` int(11) NOT NULL,
1104 `CompleteParts` int(11) NOT NULL,
1105 `Take` int(11) DEFAULT NULL,
1106 `ShortCut` varchar(255) NOT NULL,
1107 `Text` text NOT NULL,
1108 `Comment` text NOT NULL,
1109 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1110 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1111 `ModifyTime` datetime NOT NULL,
1112 PRIMARY KEY (`ID`),
1113 KEY `entry` (`Entry`),
1114 KEY `User` (`User`),
1115 KEY `Take` (`Take`),
1116 KEY `Language` (`Language`),
1117 KEY `Complete` (`Complete`),
1118 KEY `ShortCut` (`ShortCut`),
1119 KEY `VersionStart` (`VersionStart`),
1120 KEY `VersionEnd` (`VersionEnd`),
1121 KEY `ModifyTime` (`ModifyTime`)
1122) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=28367 ;
1123
1124--
1125-- RELACE PRO TABULKU `TextGlobalString`:
1126-- `Language`
1127-- `Language` -> `Id`
1128-- `User`
1129-- `User` -> `ID`
1130--
1131
1132-- --------------------------------------------------------
1133
1134--
1135-- Struktura tabulky `TextGlueLocalization`
1136--
1137
1138CREATE TABLE IF NOT EXISTS `TextGlueLocalization` (
1139 `ID` int(11) NOT NULL AUTO_INCREMENT,
1140 `Entry` int(11) NOT NULL,
1141 `Language` int(11) NOT NULL DEFAULT '0',
1142 `User` int(11) DEFAULT NULL,
1143 `Complete` int(11) NOT NULL,
1144 `CompleteParts` int(11) NOT NULL,
1145 `Take` int(11) DEFAULT NULL,
1146 `ShortCut` varchar(255) NOT NULL,
1147 `Text` text NOT NULL,
1148 `Comment` text NOT NULL,
1149 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1150 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1151 `ModifyTime` datetime NOT NULL,
1152 PRIMARY KEY (`ID`),
1153 KEY `entry` (`Entry`),
1154 KEY `User` (`User`),
1155 KEY `Take` (`Take`),
1156 KEY `Language` (`Language`),
1157 KEY `Complete` (`Complete`),
1158 KEY `ShortCut` (`ShortCut`),
1159 KEY `VersionStart` (`VersionStart`),
1160 KEY `VersionEnd` (`VersionEnd`),
1161 KEY `ModifyTime` (`ModifyTime`)
1162) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=260 ;
1163
1164--
1165-- RELACE PRO TABULKU `TextGlueLocalization`:
1166-- `Take`
1167-- `TextGlueLocalization` -> `ID`
1168-- `Language`
1169-- `Language` -> `Id`
1170-- `User`
1171-- `User` -> `ID`
1172--
1173
1174-- --------------------------------------------------------
1175
1176--
1177-- Struktura tabulky `TextGlueString`
1178--
1179
1180CREATE TABLE IF NOT EXISTS `TextGlueString` (
1181 `ID` int(11) NOT NULL AUTO_INCREMENT,
1182 `Entry` int(11) NOT NULL,
1183 `Language` int(11) NOT NULL DEFAULT '0',
1184 `User` int(11) DEFAULT NULL,
1185 `Complete` int(11) NOT NULL,
1186 `CompleteParts` int(11) NOT NULL,
1187 `Take` int(11) DEFAULT NULL,
1188 `ShortCut` varchar(255) NOT NULL,
1189 `Text` text NOT NULL,
1190 `Comment` text NOT NULL,
1191 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1192 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1193 `ModifyTime` datetime NOT NULL,
1194 PRIMARY KEY (`ID`),
1195 KEY `entry` (`Entry`),
1196 KEY `User` (`User`),
1197 KEY `Take` (`Take`),
1198 KEY `Language` (`Language`),
1199 KEY `Complete` (`Complete`),
1200 KEY `ShortCut` (`ShortCut`),
1201 KEY `VersionStart` (`VersionStart`),
1202 KEY `VersionEnd` (`VersionEnd`),
1203 KEY `ModifyTime` (`ModifyTime`)
1204) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2787 ;
1205
1206--
1207-- RELACE PRO TABULKU `TextGlueString`:
1208-- `Language`
1209-- `Language` -> `Id`
1210-- `User`
1211-- `User` -> `ID`
1212--
1213
1214-- --------------------------------------------------------
1215
1216--
1217-- Struktura tabulky `TextItem`
1218--
1219
1220CREATE TABLE IF NOT EXISTS `TextItem` (
1221 `ID` int(11) NOT NULL AUTO_INCREMENT,
1222 `Entry` int(11) NOT NULL,
1223 `Name` text NOT NULL,
1224 `Description` text NOT NULL,
1225 `Language` int(11) NOT NULL DEFAULT '0',
1226 `User` int(11) DEFAULT NULL,
1227 `Complete` int(11) NOT NULL,
1228 `CompleteParts` int(11) NOT NULL,
1229 `Take` int(11) DEFAULT NULL,
1230 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1231 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1232 `ModifyTime` datetime NOT NULL,
1233 PRIMARY KEY (`ID`),
1234 KEY `entry` (`Entry`),
1235 KEY `User` (`User`),
1236 KEY `Take` (`Take`),
1237 KEY `Complete` (`Complete`),
1238 KEY `Language` (`Language`),
1239 KEY `VersionStart` (`VersionStart`),
1240 KEY `VersionEnd` (`VersionEnd`),
1241 KEY `ModifyTime` (`ModifyTime`)
1242) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=82094 ;
1243
1244--
1245-- RELACE PRO TABULKU `TextItem`:
1246-- `Take`
1247-- `TextItem` -> `ID`
1248-- `Language`
1249-- `Language` -> `Id`
1250-- `User`
1251-- `User` -> `ID`
1252--
1253
1254-- --------------------------------------------------------
1255
1256--
1257-- Struktura tabulky `TextItemSubClass`
1258--
1259
1260CREATE TABLE IF NOT EXISTS `TextItemSubClass` (
1261 `ID` int(11) NOT NULL AUTO_INCREMENT,
1262 `Entry` int(11) NOT NULL,
1263 `Index` varchar(255) NOT NULL,
1264 `Name` varchar(255) NOT NULL,
1265 `Name2` varchar(255) NOT NULL,
1266 `Language` int(11) NOT NULL DEFAULT '0',
1267 `User` int(11) DEFAULT NULL,
1268 `Complete` int(11) NOT NULL,
1269 `CompleteParts` int(11) NOT NULL,
1270 `Take` int(11) DEFAULT NULL,
1271 `VersionStart` int(11) NOT NULL,
1272 `VersionEnd` int(11) NOT NULL,
1273 `ModifyTime` datetime NOT NULL,
1274 PRIMARY KEY (`ID`),
1275 KEY `Entry` (`Entry`),
1276 KEY `User` (`User`),
1277 KEY `Take` (`Take`),
1278 KEY `Language` (`Language`),
1279 KEY `Complete` (`Complete`),
1280 KEY `VersionStart` (`VersionStart`),
1281 KEY `VersionEnd` (`VersionEnd`),
1282 KEY `ModifyTime` (`ModifyTime`)
1283) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=359 ;
1284
1285--
1286-- RELACE PRO TABULKU `TextItemSubClass`:
1287-- `Take`
1288-- `TextItemSubClass` -> `ID`
1289-- `Language`
1290-- `Language` -> `Id`
1291-- `User`
1292-- `User` -> `ID`
1293--
1294
1295-- --------------------------------------------------------
1296
1297--
1298-- Struktura tabulky `TextMangosCommand`
1299--
1300
1301CREATE TABLE IF NOT EXISTS `TextMangosCommand` (
1302 `ID` int(11) NOT NULL AUTO_INCREMENT,
1303 `Entry` int(11) NOT NULL,
1304 `Help` text NOT NULL,
1305 `Language` int(11) NOT NULL DEFAULT '0',
1306 `User` int(11) DEFAULT NULL,
1307 `Complete` int(11) NOT NULL,
1308 `CompleteParts` int(11) NOT NULL,
1309 `Take` int(11) DEFAULT NULL,
1310 `Name` varchar(255) NOT NULL,
1311 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1312 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1313 `ModifyTime` datetime NOT NULL,
1314 PRIMARY KEY (`ID`),
1315 KEY `entry` (`Entry`),
1316 KEY `User` (`User`),
1317 KEY `Take` (`Take`),
1318 KEY `Complete` (`Complete`),
1319 KEY `Language` (`Language`),
1320 KEY `Name` (`Name`),
1321 KEY `VersionStart` (`VersionStart`),
1322 KEY `VersionEnd` (`VersionEnd`),
1323 KEY `ModifyTime` (`ModifyTime`)
1324) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1038 ;
1325
1326--
1327-- RELACE PRO TABULKU `TextMangosCommand`:
1328-- `Language`
1329-- `Language` -> `Id`
1330-- `User`
1331-- `User` -> `ID`
1332--
1333
1334-- --------------------------------------------------------
1335
1336--
1337-- Struktura tabulky `TextMangosString`
1338--
1339
1340CREATE TABLE IF NOT EXISTS `TextMangosString` (
1341 `ID` int(11) NOT NULL AUTO_INCREMENT,
1342 `Entry` int(11) NOT NULL,
1343 `ContentDefault` text NOT NULL,
1344 `Language` int(11) NOT NULL DEFAULT '0',
1345 `User` int(11) DEFAULT NULL,
1346 `Complete` int(11) NOT NULL,
1347 `CompleteParts` int(11) NOT NULL,
1348 `Take` int(11) DEFAULT NULL,
1349 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1350 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1351 `ModifyTime` datetime NOT NULL,
1352 PRIMARY KEY (`ID`),
1353 KEY `entry` (`Entry`),
1354 KEY `User` (`User`),
1355 KEY `Take` (`Take`),
1356 KEY `Complete` (`Complete`),
1357 KEY `Language` (`Language`),
1358 KEY `VersionStart` (`VersionStart`),
1359 KEY `VersionEnd` (`VersionEnd`),
1360 KEY `ModifyTime` (`ModifyTime`)
1361) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2543 ;
1362
1363--
1364-- RELACE PRO TABULKU `TextMangosString`:
1365-- `Take`
1366-- `TextMangosString` -> `ID`
1367-- `Language`
1368-- `Language` -> `Id`
1369-- `User`
1370-- `User` -> `ID`
1371--
1372
1373-- --------------------------------------------------------
1374
1375--
1376-- Struktura tabulky `TextNPC`
1377--
1378
1379CREATE TABLE IF NOT EXISTS `TextNPC` (
1380 `ID` int(11) NOT NULL AUTO_INCREMENT,
1381 `Entry` int(11) NOT NULL,
1382 `Text0_0` text,
1383 `Text0_1` text,
1384 `Text1_0` text,
1385 `Text1_1` text,
1386 `Text2_0` text,
1387 `Text2_1` text,
1388 `Text3_0` text,
1389 `Text3_1` text,
1390 `Text4_0` text,
1391 `Text4_1` text,
1392 `Text5_0` text,
1393 `Text5_1` text,
1394 `Text6_0` text,
1395 `Text6_1` text,
1396 `Text7_0` text,
1397 `Text7_1` text,
1398 `Language` int(11) NOT NULL DEFAULT '0',
1399 `User` int(11) DEFAULT NULL,
1400 `Complete` int(11) NOT NULL,
1401 `CompleteParts` int(11) NOT NULL,
1402 `Take` int(11) DEFAULT NULL,
1403 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1404 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1405 `ModifyTime` datetime NOT NULL,
1406 PRIMARY KEY (`ID`),
1407 KEY `entry` (`Entry`),
1408 KEY `User` (`User`),
1409 KEY `Take` (`Take`),
1410 KEY `Complete` (`Complete`),
1411 KEY `Language` (`Language`),
1412 KEY `VersionStart` (`VersionStart`),
1413 KEY `VersionEnd` (`VersionEnd`),
1414 KEY `ModifyTime` (`ModifyTime`)
1415) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=16782160 ;
1416
1417--
1418-- RELACE PRO TABULKU `TextNPC`:
1419-- `Language`
1420-- `Language` -> `Id`
1421-- `User`
1422-- `User` -> `ID`
1423--
1424
1425-- --------------------------------------------------------
1426
1427--
1428-- Struktura tabulky `TextNPCOption`
1429--
1430
1431CREATE TABLE IF NOT EXISTS `TextNPCOption` (
1432 `ID` int(11) NOT NULL AUTO_INCREMENT,
1433 `Entry` int(11) NOT NULL,
1434 `Language` int(11) NOT NULL DEFAULT '0',
1435 `User` int(11) DEFAULT NULL,
1436 `Complete` int(11) NOT NULL,
1437 `CompleteParts` int(11) NOT NULL,
1438 `Take` int(11) DEFAULT NULL,
1439 `Index` varchar(255) NOT NULL,
1440 `OptionText` text NOT NULL,
1441 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1442 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1443 `ModifyTime` datetime NOT NULL,
1444 PRIMARY KEY (`ID`),
1445 KEY `entry` (`Entry`),
1446 KEY `User` (`User`),
1447 KEY `Take` (`Take`),
1448 KEY `Language` (`Language`),
1449 KEY `Complete` (`Complete`),
1450 KEY `VersionStart` (`VersionStart`),
1451 KEY `VersionEnd` (`VersionEnd`),
1452 KEY `ModifyTime` (`ModifyTime`)
1453) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3924 ;
1454
1455--
1456-- RELACE PRO TABULKU `TextNPCOption`:
1457-- `Take`
1458-- `TextNPCOption` -> `ID`
1459-- `Language`
1460-- `Language` -> `Id`
1461-- `User`
1462-- `User` -> `ID`
1463--
1464
1465-- --------------------------------------------------------
1466
1467--
1468-- Struktura tabulky `TextPage`
1469--
1470
1471CREATE TABLE IF NOT EXISTS `TextPage` (
1472 `ID` int(11) NOT NULL AUTO_INCREMENT,
1473 `Entry` int(11) NOT NULL,
1474 `Text` text,
1475 `Language` int(11) NOT NULL,
1476 `User` int(11) DEFAULT NULL,
1477 `Complete` int(11) NOT NULL,
1478 `CompleteParts` int(11) NOT NULL,
1479 `Take` int(11) DEFAULT NULL,
1480 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1481 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1482 `ModifyTime` datetime NOT NULL,
1483 PRIMARY KEY (`ID`),
1484 KEY `entry` (`Entry`),
1485 KEY `User` (`User`),
1486 KEY `Take` (`Take`),
1487 KEY `Complete` (`Complete`),
1488 KEY `Language` (`Language`),
1489 KEY `VersionStart` (`VersionStart`),
1490 KEY `VersionEnd` (`VersionEnd`),
1491 KEY `ModifyTime` (`ModifyTime`)
1492) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item System' AUTO_INCREMENT=2919 ;
1493
1494--
1495-- RELACE PRO TABULKU `TextPage`:
1496-- `Language`
1497-- `Language` -> `Id`
1498-- `User`
1499-- `User` -> `ID`
1500--
1501
1502-- --------------------------------------------------------
1503
1504--
1505-- Struktura tabulky `TextQuest`
1506--
1507
1508CREATE TABLE IF NOT EXISTS `TextQuest` (
1509 `ID` int(11) NOT NULL AUTO_INCREMENT,
1510 `Entry` int(11) NOT NULL,
1511 `Title` text NOT NULL,
1512 `Details` text NOT NULL,
1513 `Objectives` text NOT NULL,
1514 `OfferRewardText` text NOT NULL,
1515 `RequestItemsText` text NOT NULL,
1516 `EndText` text NOT NULL,
1517 `ObjectiveText1` text NOT NULL,
1518 `ObjectiveText2` text NOT NULL,
1519 `ObjectiveText3` text NOT NULL,
1520 `ObjectiveText4` text NOT NULL,
1521 `Language` int(11) NOT NULL DEFAULT '1',
1522 `User` int(11) DEFAULT NULL,
1523 `Complete` int(11) NOT NULL DEFAULT '1',
1524 `CompleteParts` int(11) NOT NULL COMMENT 'Bit array of completion of parts ',
1525 `Take` int(11) DEFAULT NULL,
1526 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1527 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1528 `ModifyTime` datetime NOT NULL,
1529 PRIMARY KEY (`ID`),
1530 KEY `entry` (`Entry`),
1531 KEY `User` (`User`),
1532 KEY `complete` (`Complete`),
1533 KEY `Language` (`Language`),
1534 KEY `VersionStart` (`VersionStart`),
1535 KEY `VersionEnd` (`VersionEnd`),
1536 KEY `ModifyTime` (`ModifyTime`)
1537) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=17188 ;
1538
1539--
1540-- RELACE PRO TABULKU `TextQuest`:
1541-- `Language`
1542-- `Language` -> `Id`
1543-- `User`
1544-- `User` -> `ID`
1545--
1546
1547-- --------------------------------------------------------
1548
1549--
1550-- Struktura tabulky `TextSD2EventAI`
1551--
1552
1553CREATE TABLE IF NOT EXISTS `TextSD2EventAI` (
1554 `ID` int(11) NOT NULL AUTO_INCREMENT,
1555 `Entry` int(11) NOT NULL,
1556 `ContentDefault` text NOT NULL,
1557 `Comment` text NOT NULL,
1558 `Language` int(11) NOT NULL DEFAULT '0',
1559 `User` int(11) DEFAULT NULL,
1560 `Complete` int(11) NOT NULL,
1561 `CompleteParts` int(11) NOT NULL,
1562 `Take` int(11) DEFAULT NULL,
1563 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1564 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1565 `ModifyTime` datetime NOT NULL,
1566 PRIMARY KEY (`ID`),
1567 KEY `entry` (`Entry`),
1568 KEY `User` (`User`),
1569 KEY `Take` (`Take`),
1570 KEY `Complete` (`Complete`),
1571 KEY `Language` (`Language`),
1572 KEY `VersionStart` (`VersionStart`),
1573 KEY `VersionEnd` (`VersionEnd`),
1574 KEY `ModifyTime` (`ModifyTime`)
1575) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2956 ;
1576
1577--
1578-- RELACE PRO TABULKU `TextSD2EventAI`:
1579-- `Take`
1580-- `TextSD2EventAI` -> `ID`
1581-- `Language`
1582-- `Language` -> `Id`
1583-- `User`
1584-- `User` -> `ID`
1585--
1586
1587-- --------------------------------------------------------
1588
1589--
1590-- Struktura tabulky `TextSD2Script`
1591--
1592
1593CREATE TABLE IF NOT EXISTS `TextSD2Script` (
1594 `ID` int(11) NOT NULL AUTO_INCREMENT,
1595 `Entry` int(11) NOT NULL,
1596 `ContentDefault` text NOT NULL,
1597 `Comment` text NOT NULL,
1598 `Language` int(11) NOT NULL DEFAULT '0',
1599 `User` int(11) DEFAULT NULL,
1600 `Complete` int(11) NOT NULL,
1601 `CompleteParts` int(11) NOT NULL,
1602 `Take` int(11) DEFAULT NULL,
1603 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1604 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1605 `ModifyTime` datetime NOT NULL,
1606 PRIMARY KEY (`ID`),
1607 KEY `entry` (`Entry`),
1608 KEY `User` (`User`),
1609 KEY `Take` (`Take`),
1610 KEY `Complete` (`Complete`),
1611 KEY `Language` (`Language`),
1612 KEY `VersionStart` (`VersionStart`),
1613 KEY `VersionEnd` (`VersionEnd`),
1614 KEY `ModifyTime` (`ModifyTime`)
1615) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3344 ;
1616
1617--
1618-- RELACE PRO TABULKU `TextSD2Script`:
1619-- `Take`
1620-- `TextSD2Script` -> `ID`
1621-- `Language`
1622-- `Language` -> `Id`
1623-- `User`
1624-- `User` -> `ID`
1625--
1626
1627-- --------------------------------------------------------
1628
1629--
1630-- Struktura tabulky `TextSkillCategory`
1631--
1632
1633CREATE TABLE IF NOT EXISTS `TextSkillCategory` (
1634 `ID` int(11) NOT NULL AUTO_INCREMENT,
1635 `Entry` int(11) NOT NULL,
1636 `Name` varchar(255) NOT NULL,
1637 `Language` int(11) NOT NULL DEFAULT '0',
1638 `User` int(11) DEFAULT NULL,
1639 `Complete` int(11) NOT NULL,
1640 `CompleteParts` int(11) NOT NULL,
1641 `Take` int(11) DEFAULT NULL,
1642 `VersionStart` int(11) NOT NULL,
1643 `VersionEnd` int(11) NOT NULL,
1644 `ModifyTime` datetime NOT NULL,
1645 `sss` int(11) DEFAULT NULL,
1646 PRIMARY KEY (`ID`),
1647 KEY `Entry` (`Entry`),
1648 KEY `User` (`User`),
1649 KEY `Take` (`Take`),
1650 KEY `Language` (`Language`),
1651 KEY `Complete` (`Complete`),
1652 KEY `VersionStart` (`VersionStart`),
1653 KEY `VersionEnd` (`VersionEnd`),
1654 KEY `ModifyTime` (`ModifyTime`),
1655 KEY `sss` (`sss`)
1656) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;
1657
1658--
1659-- RELACE PRO TABULKU `TextSkillCategory`:
1660-- `Take`
1661-- `TextSkillCategory` -> `Id`
1662-- `Language`
1663-- `Language` -> `Id`
1664-- `User`
1665-- `User` -> `ID`
1666--
1667
1668-- --------------------------------------------------------
1669
1670--
1671-- Struktura tabulky `TextSkillLine`
1672--
1673
1674CREATE TABLE IF NOT EXISTS `TextSkillLine` (
1675 `ID` int(11) NOT NULL AUTO_INCREMENT,
1676 `Entry` int(11) NOT NULL,
1677 `Name` varchar(255) NOT NULL,
1678 `Description` text NOT NULL,
1679 `Language` int(11) NOT NULL DEFAULT '0',
1680 `User` int(11) DEFAULT NULL,
1681 `Complete` int(11) NOT NULL,
1682 `CompleteParts` int(11) NOT NULL,
1683 `Take` int(11) DEFAULT NULL,
1684 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1685 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1686 `ModifyTime` datetime NOT NULL,
1687 PRIMARY KEY (`ID`),
1688 KEY `Entry` (`Entry`),
1689 KEY `User` (`User`),
1690 KEY `Take` (`Take`),
1691 KEY `Language` (`Language`),
1692 KEY `Complete` (`Complete`),
1693 KEY `VersionStart` (`VersionStart`),
1694 KEY `VersionEnd` (`VersionEnd`),
1695 KEY `ModifyTime` (`ModifyTime`)
1696) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=375 ;
1697
1698--
1699-- RELACE PRO TABULKU `TextSkillLine`:
1700-- `Take`
1701-- `TextSkillLine` -> `ID`
1702-- `Language`
1703-- `Language` -> `Id`
1704-- `User`
1705-- `User` -> `ID`
1706--
1707
1708-- --------------------------------------------------------
1709
1710--
1711-- Struktura tabulky `TextSpell`
1712--
1713
1714CREATE TABLE IF NOT EXISTS `TextSpell` (
1715 `ID` int(11) NOT NULL AUTO_INCREMENT,
1716 `Entry` int(11) NOT NULL,
1717 `Name` text NOT NULL,
1718 `Description` text NOT NULL,
1719 `ToolTip` text NOT NULL,
1720 `Rank` text NOT NULL,
1721 `Language` int(11) NOT NULL DEFAULT '0',
1722 `User` int(11) DEFAULT NULL,
1723 `Complete` int(11) NOT NULL,
1724 `CompleteParts` int(11) NOT NULL,
1725 `Take` int(11) DEFAULT NULL,
1726 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1727 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1728 `ModifyTime` datetime NOT NULL,
1729 PRIMARY KEY (`ID`),
1730 KEY `entry` (`Entry`),
1731 KEY `User` (`User`),
1732 KEY `Take` (`Take`),
1733 KEY `Language` (`Language`),
1734 KEY `Complete` (`Complete`),
1735 KEY `VersionStart` (`VersionStart`),
1736 KEY `VersionEnd` (`VersionEnd`),
1737 KEY `ModifyTime` (`ModifyTime`)
1738) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=480282 ;
1739
1740--
1741-- RELACE PRO TABULKU `TextSpell`:
1742-- `Take`
1743-- `TextSpell` -> `ID`
1744-- `Language`
1745-- `Language` -> `Id`
1746-- `User`
1747-- `User` -> `ID`
1748--
1749
1750-- --------------------------------------------------------
1751
1752--
1753-- Struktura tabulky `TextTalentTab`
1754--
1755
1756CREATE TABLE IF NOT EXISTS `TextTalentTab` (
1757 `ID` int(11) NOT NULL AUTO_INCREMENT,
1758 `Entry` int(11) NOT NULL,
1759 `Name` varchar(255) NOT NULL,
1760 `Language` int(11) NOT NULL DEFAULT '0',
1761 `User` int(11) DEFAULT NULL,
1762 `Complete` int(11) NOT NULL,
1763 `CompleteParts` int(11) NOT NULL,
1764 `Take` int(11) DEFAULT NULL,
1765 `VersionStart` int(11) NOT NULL,
1766 `VersionEnd` int(11) NOT NULL,
1767 `ModifyTime` datetime NOT NULL,
1768 PRIMARY KEY (`ID`),
1769 KEY `Entry` (`Entry`),
1770 KEY `User` (`User`),
1771 KEY `Take` (`Take`),
1772 KEY `Language` (`Language`),
1773 KEY `Complete` (`Complete`),
1774 KEY `VersionStart` (`VersionStart`),
1775 KEY `VersionEnd` (`VersionEnd`),
1776 KEY `ModifyTime` (`ModifyTime`)
1777) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=116 ;
1778
1779--
1780-- RELACE PRO TABULKU `TextTalentTab`:
1781-- `Take`
1782-- `TextTalentTab` -> `ID`
1783-- `Language`
1784-- `Language` -> `Id`
1785-- `User`
1786-- `User` -> `ID`
1787--
1788
1789-- --------------------------------------------------------
1790
1791--
1792-- Struktura tabulky `TextTotemCategory`
1793--
1794
1795CREATE TABLE IF NOT EXISTS `TextTotemCategory` (
1796 `ID` int(11) NOT NULL AUTO_INCREMENT,
1797 `Entry` int(11) NOT NULL,
1798 `Name` varchar(255) NOT NULL,
1799 `Language` int(11) NOT NULL DEFAULT '0',
1800 `User` int(11) DEFAULT NULL,
1801 `Complete` int(11) NOT NULL,
1802 `CompleteParts` int(11) NOT NULL,
1803 `Take` int(11) DEFAULT NULL,
1804 `VersionStart` int(11) NOT NULL,
1805 `VersionEnd` int(11) NOT NULL,
1806 `ModifyTime` datetime NOT NULL,
1807 PRIMARY KEY (`ID`),
1808 KEY `Entry` (`Entry`),
1809 KEY `User` (`User`),
1810 KEY `Take` (`Take`),
1811 KEY `Language` (`Language`),
1812 KEY `Complete` (`Complete`),
1813 KEY `VersionStart` (`VersionStart`),
1814 KEY `VersionEnd` (`VersionEnd`),
1815 KEY `ModifyTime` (`ModifyTime`)
1816) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=68 ;
1817
1818--
1819-- RELACE PRO TABULKU `TextTotemCategory`:
1820-- `Take`
1821-- `TextTotemCategory` -> `ID`
1822-- `Language`
1823-- `Language` -> `Id`
1824-- `User`
1825-- `User` -> `ID`
1826--
1827
1828-- --------------------------------------------------------
1829
1830--
1831-- Struktura tabulky `TextTransport`
1832--
1833
1834CREATE TABLE IF NOT EXISTS `TextTransport` (
1835 `ID` int(11) NOT NULL AUTO_INCREMENT,
1836 `Entry` int(11) NOT NULL,
1837 `Language` int(11) NOT NULL DEFAULT '0',
1838 `User` int(11) DEFAULT NULL,
1839 `Complete` int(11) NOT NULL,
1840 `CompleteParts` int(11) NOT NULL,
1841 `Take` int(11) DEFAULT NULL,
1842 `Name` text NOT NULL,
1843 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1844 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1845 `ModifyTime` datetime NOT NULL,
1846 PRIMARY KEY (`ID`),
1847 KEY `entry` (`Entry`),
1848 KEY `User` (`User`),
1849 KEY `Take` (`Take`),
1850 KEY `Language` (`Language`),
1851 KEY `Complete` (`Complete`),
1852 KEY `VersionStart` (`VersionStart`),
1853 KEY `VersionEnd` (`VersionEnd`),
1854 KEY `ModifyTime` (`ModifyTime`)
1855) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=75 ;
1856
1857--
1858-- RELACE PRO TABULKU `TextTransport`:
1859-- `Take`
1860-- `TextTransport` -> `ID`
1861-- `Language`
1862-- `Language` -> `Id`
1863-- `User`
1864-- `User` -> `ID`
1865--
1866
1867-- --------------------------------------------------------
1868
1869--
1870-- Struktura tabulky `TextWorldStateUI`
1871--
1872
1873CREATE TABLE IF NOT EXISTS `TextWorldStateUI` (
1874 `ID` int(11) NOT NULL AUTO_INCREMENT,
1875 `Entry` int(11) NOT NULL,
1876 `Text1` varchar(255) NOT NULL,
1877 `Text2` varchar(255) NOT NULL,
1878 `Frame` text NOT NULL,
1879 `Frame2` text NOT NULL,
1880 `Language` int(11) NOT NULL DEFAULT '0',
1881 `User` int(11) DEFAULT NULL,
1882 `Complete` int(11) NOT NULL,
1883 `CompleteParts` int(11) NOT NULL,
1884 `Take` int(11) DEFAULT NULL,
1885 `VersionStart` int(11) NOT NULL DEFAULT '8606',
1886 `VersionEnd` int(11) NOT NULL DEFAULT '8606',
1887 `ModifyTime` datetime NOT NULL,
1888 PRIMARY KEY (`ID`),
1889 KEY `Entry` (`Entry`),
1890 KEY `User` (`User`),
1891 KEY `Take` (`Take`),
1892 KEY `Language` (`Language`),
1893 KEY `Complete` (`Complete`),
1894 KEY `VersionStart` (`VersionStart`),
1895 KEY `VersionEnd` (`VersionEnd`),
1896 KEY `ModifyTime` (`ModifyTime`)
1897) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=391 ;
1898
1899--
1900-- RELACE PRO TABULKU `TextWorldStateUI`:
1901-- `Take`
1902-- `TextWorldStateUI` -> `ID`
1903-- `Language`
1904-- `Language` -> `Id`
1905-- `User`
1906-- `User` -> `ID`
1907--
1908
1909-- --------------------------------------------------------
1910
1911--
1912-- Struktura tabulky `User`
1913--
1914
1915CREATE TABLE IF NOT EXISTS `User` (
1916 `ID` int(11) NOT NULL AUTO_INCREMENT,
1917 `Name` varchar(64) CHARACTER SET utf8 NOT NULL,
1918 `Pass` text CHARACTER SET utf8 NOT NULL,
1919 `Salt` varchar(255) CHARACTER SET utf8 NOT NULL,
1920 `GM` int(11) NOT NULL DEFAULT '0',
1921 `LastIP` text CHARACTER SET utf8 NOT NULL,
1922 `LastLogin` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1923 `LastLogout` datetime DEFAULT NULL,
1924 `Email` text CHARACTER SET utf8 NOT NULL,
1925 `Language` int(11) NOT NULL DEFAULT '1',
1926 `XP` int(11) NOT NULL,
1927 `TranslatedCount` int(11) NOT NULL,
1928 `NeedUpdate` int(11) NOT NULL,
1929 `Team` int(11) DEFAULT NULL,
1930 `Redirecting` int(11) NOT NULL,
1931 `RegistrationTime` datetime DEFAULT NULL,
1932 PRIMARY KEY (`ID`),
1933 UNIQUE KEY `user` (`Name`),
1934 KEY `team` (`Team`),
1935 KEY `LastLogin` (`LastLogin`),
1936 KEY `LastLogout` (`LastLogout`),
1937 KEY `NeedUpdate` (`NeedUpdate`),
1938 KEY `TranslatedCount` (`TranslatedCount`),
1939 KEY `Language` (`Language`)
1940) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1388 ;
1941
1942--
1943-- RELACE PRO TABULKU `User`:
1944-- `Language`
1945-- `Language` -> `Id`
1946-- `Team`
1947-- `Team` -> `Id`
1948--
1949
1950--
1951-- Omezení pro exportované tabulky
1952--
1953
1954--
1955-- Omezení pro tabulku `CzWoWPackageVersion`
1956--
1957ALTER TABLE `CzWoWPackageVersion`
1958 ADD CONSTRAINT `CzWoWPackageVersion_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
1959
1960--
1961-- Omezení pro tabulku `Dictionary`
1962--
1963ALTER TABLE `Dictionary`
1964 ADD CONSTRAINT `Dictionary_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
1965 ADD CONSTRAINT `Dictionary_ibfk_3` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`);
1966
1967--
1968-- Omezení pro tabulku `Export`
1969--
1970ALTER TABLE `Export`
1971 ADD CONSTRAINT `Export_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
1972 ADD CONSTRAINT `Export_ibfk_2` FOREIGN KEY (`ClientVersion`) REFERENCES `ClientVersion` (`Id`),
1973 ADD CONSTRAINT `Export_ibfk_3` FOREIGN KEY (`OutputType`) REFERENCES `ExportOutputType` (`Id`);
1974
1975--
1976-- Omezení pro tabulku `ExportGroup`
1977--
1978ALTER TABLE `ExportGroup`
1979 ADD CONSTRAINT `ExportGroup_ibfk_1` FOREIGN KEY (`Group`) REFERENCES `Group` (`Id`),
1980 ADD CONSTRAINT `ExportGroup_ibfk_2` FOREIGN KEY (`Group`) REFERENCES `Group` (`Id`),
1981 ADD CONSTRAINT `ExportGroup_ibfk_3` FOREIGN KEY (`Export`) REFERENCES `Export` (`Id`);
1982
1983--
1984-- Omezení pro tabulku `ExportLanguage`
1985--
1986ALTER TABLE `ExportLanguage`
1987 ADD CONSTRAINT `ExportLanguage_ibfk_1` FOREIGN KEY (`Export`) REFERENCES `Export` (`Id`),
1988 ADD CONSTRAINT `ExportLanguage_ibfk_2` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`);
1989
1990--
1991-- Omezení pro tabulku `ExportTask`
1992--
1993ALTER TABLE `ExportTask`
1994 ADD CONSTRAINT `ExportTask_ibfk_1` FOREIGN KEY (`Export`) REFERENCES `Export` (`Id`);
1995
1996--
1997-- Omezení pro tabulku `ExportUser`
1998--
1999ALTER TABLE `ExportUser`
2000 ADD CONSTRAINT `ExportUser_ibfk_1` FOREIGN KEY (`Export`) REFERENCES `Export` (`Id`),
2001 ADD CONSTRAINT `ExportUser_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2002
2003--
2004-- Omezení pro tabulku `ExportVersion`
2005--
2006ALTER TABLE `ExportVersion`
2007 ADD CONSTRAINT `ExportVersion_ibfk_1` FOREIGN KEY (`ExportType`) REFERENCES `ExportOutputType` (`Id`),
2008 ADD CONSTRAINT `ExportVersion_ibfk_2` FOREIGN KEY (`ClientVersion`) REFERENCES `ClientVersion` (`Id`);
2009
2010--
2011-- Omezení pro tabulku `GroupItem`
2012--
2013ALTER TABLE `GroupItem`
2014 ADD CONSTRAINT `GroupItem_ibfk_1` FOREIGN KEY (`Group`) REFERENCES `Group` (`Id`);
2015
2016--
2017-- Omezení pro tabulku `GroupItemDBC`
2018--
2019ALTER TABLE `GroupItemDBC`
2020 ADD CONSTRAINT `GroupItemDBC_ibfk_1` FOREIGN KEY (`ClientVersion`) REFERENCES `ClientVersion` (`Id`),
2021 ADD CONSTRAINT `GroupItemDBC_ibfk_2` FOREIGN KEY (`GroupItem`) REFERENCES `GroupItem` (`Id`);
2022
2023--
2024-- Omezení pro tabulku `Log`
2025--
2026ALTER TABLE `Log`
2027 ADD CONSTRAINT `Log_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2028 ADD CONSTRAINT `Log_ibfk_2` FOREIGN KEY (`Type`) REFERENCES `LogType` (`Id`);
2029
2030--
2031-- Omezení pro tabulku `News`
2032--
2033ALTER TABLE `News`
2034 ADD CONSTRAINT `News_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2035
2036--
2037-- Omezení pro tabulku `Referrer`
2038--
2039ALTER TABLE `Referrer`
2040 ADD CONSTRAINT `Referrer_ibfk_1` FOREIGN KEY (`Parent`) REFERENCES `Referrer` (`Id`);
2041
2042--
2043-- Omezení pro tabulku `ShoutBox`
2044--
2045ALTER TABLE `ShoutBox`
2046 ADD CONSTRAINT `ShoutBox_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2047
2048--
2049-- Omezení pro tabulku `Team`
2050--
2051ALTER TABLE `Team`
2052 ADD CONSTRAINT `Team_ibfk_1` FOREIGN KEY (`Leader`) REFERENCES `User` (`ID`);
2053
2054--
2055-- Omezení pro tabulku `TextAchievement`
2056--
2057ALTER TABLE `TextAchievement`
2058 ADD CONSTRAINT `TextAchievement_ibfk_5` FOREIGN KEY (`Take`) REFERENCES `TextAchievement` (`ID`),
2059 ADD CONSTRAINT `TextAchievement_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2060 ADD CONSTRAINT `TextAchievement_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2061 ADD CONSTRAINT `TextAchievement_ibfk_3` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2062 ADD CONSTRAINT `TextAchievement_ibfk_4` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2063
2064--
2065-- Omezení pro tabulku `TextAchievementCategory`
2066--
2067ALTER TABLE `TextAchievementCategory`
2068 ADD CONSTRAINT `TextAchievementCategory_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextAchievementCategory` (`ID`),
2069 ADD CONSTRAINT `TextAchievementCategory_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2070 ADD CONSTRAINT `TextAchievementCategory_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2071
2072--
2073-- Omezení pro tabulku `TextAchievementCriteria`
2074--
2075ALTER TABLE `TextAchievementCriteria`
2076 ADD CONSTRAINT `TextAchievementCriteria_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextAchievementCriteria` (`ID`),
2077 ADD CONSTRAINT `TextAchievementCriteria_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2078 ADD CONSTRAINT `TextAchievementCriteria_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2079
2080--
2081-- Omezení pro tabulku `TextArea`
2082--
2083ALTER TABLE `TextArea`
2084 ADD CONSTRAINT `TextArea_ibfk_9` FOREIGN KEY (`Take`) REFERENCES `TextArea` (`ID`),
2085 ADD CONSTRAINT `TextArea_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2086 ADD CONSTRAINT `TextArea_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2087 ADD CONSTRAINT `TextArea_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextArea` (`ID`),
2088 ADD CONSTRAINT `TextArea_ibfk_4` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2089 ADD CONSTRAINT `TextArea_ibfk_5` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2090 ADD CONSTRAINT `TextArea_ibfk_6` FOREIGN KEY (`Take`) REFERENCES `TextArea` (`ID`),
2091 ADD CONSTRAINT `TextArea_ibfk_7` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2092 ADD CONSTRAINT `TextArea_ibfk_8` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2093
2094--
2095-- Omezení pro tabulku `TextAreaPOI`
2096--
2097ALTER TABLE `TextAreaPOI`
2098 ADD CONSTRAINT `TextAreaPOI_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextAreaPOI` (`ID`),
2099 ADD CONSTRAINT `TextAreaPOI_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2100 ADD CONSTRAINT `TextAreaPOI_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2101
2102--
2103-- Omezení pro tabulku `TextAreaTriggerTavern`
2104--
2105ALTER TABLE `TextAreaTriggerTavern`
2106 ADD CONSTRAINT `TextAreaTriggerTavern_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextAreaTriggerTavern` (`ID`),
2107 ADD CONSTRAINT `TextAreaTriggerTavern_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2108 ADD CONSTRAINT `TextAreaTriggerTavern_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2109
2110--
2111-- Omezení pro tabulku `TextAreaTriggerTeleport`
2112--
2113ALTER TABLE `TextAreaTriggerTeleport`
2114 ADD CONSTRAINT `TextAreaTriggerTeleport_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextAreaTriggerTeleport` (`ID`),
2115 ADD CONSTRAINT `TextAreaTriggerTeleport_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2116 ADD CONSTRAINT `TextAreaTriggerTeleport_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2117
2118--
2119-- Omezení pro tabulku `TextCharacterClass`
2120--
2121ALTER TABLE `TextCharacterClass`
2122 ADD CONSTRAINT `TextCharacterClass_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextCharacterClass` (`ID`),
2123 ADD CONSTRAINT `TextCharacterClass_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2124 ADD CONSTRAINT `TextCharacterClass_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2125
2126--
2127-- Omezení pro tabulku `TextCharacterRace`
2128--
2129ALTER TABLE `TextCharacterRace`
2130 ADD CONSTRAINT `TextCharacterRace_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextCharacterRace` (`ID`),
2131 ADD CONSTRAINT `TextCharacterRace_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2132 ADD CONSTRAINT `TextCharacterRace_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2133
2134--
2135-- Omezení pro tabulku `TextChatChannel`
2136--
2137ALTER TABLE `TextChatChannel`
2138 ADD CONSTRAINT `TextChatChannel_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextChatChannel` (`ID`),
2139 ADD CONSTRAINT `TextChatChannel_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2140 ADD CONSTRAINT `TextChatChannel_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2141
2142--
2143-- Omezení pro tabulku `TextCreature`
2144--
2145ALTER TABLE `TextCreature`
2146 ADD CONSTRAINT `TextCreature_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextCreature` (`ID`),
2147 ADD CONSTRAINT `TextCreature_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2148 ADD CONSTRAINT `TextCreature_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2149
2150--
2151-- Omezení pro tabulku `TextCreatureType`
2152--
2153ALTER TABLE `TextCreatureType`
2154 ADD CONSTRAINT `TextCreatureType_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextCreatureType` (`ID`),
2155 ADD CONSTRAINT `TextCreatureType_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2156 ADD CONSTRAINT `TextCreatureType_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2157
2158--
2159-- Omezení pro tabulku `TextEmote`
2160--
2161ALTER TABLE `TextEmote`
2162 ADD CONSTRAINT `TextEmote_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextEmote` (`ID`),
2163 ADD CONSTRAINT `TextEmote_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2164 ADD CONSTRAINT `TextEmote_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2165
2166--
2167-- Omezení pro tabulku `TextGameObject`
2168--
2169ALTER TABLE `TextGameObject`
2170 ADD CONSTRAINT `TextGameObject_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextGameObject` (`ID`),
2171 ADD CONSTRAINT `TextGameObject_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2172 ADD CONSTRAINT `TextGameObject_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2173
2174--
2175-- Omezení pro tabulku `TextGameTip`
2176--
2177ALTER TABLE `TextGameTip`
2178 ADD CONSTRAINT `TextGameTip_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextGameTip` (`ID`),
2179 ADD CONSTRAINT `TextGameTip_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2180 ADD CONSTRAINT `TextGameTip_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2181
2182--
2183-- Omezení pro tabulku `TextGlobalString`
2184--
2185ALTER TABLE `TextGlobalString`
2186 ADD CONSTRAINT `TextGlobalString_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2187 ADD CONSTRAINT `TextGlobalString_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2188
2189--
2190-- Omezení pro tabulku `TextGlueLocalization`
2191--
2192ALTER TABLE `TextGlueLocalization`
2193 ADD CONSTRAINT `TextGlueLocalization_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextGlueLocalization` (`ID`),
2194 ADD CONSTRAINT `TextGlueLocalization_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2195 ADD CONSTRAINT `TextGlueLocalization_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2196
2197--
2198-- Omezení pro tabulku `TextGlueString`
2199--
2200ALTER TABLE `TextGlueString`
2201 ADD CONSTRAINT `TextGlueString_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2202 ADD CONSTRAINT `TextGlueString_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2203
2204--
2205-- Omezení pro tabulku `TextItem`
2206--
2207ALTER TABLE `TextItem`
2208 ADD CONSTRAINT `TextItem_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextItem` (`ID`),
2209 ADD CONSTRAINT `TextItem_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2210 ADD CONSTRAINT `TextItem_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2211
2212--
2213-- Omezení pro tabulku `TextItemSubClass`
2214--
2215ALTER TABLE `TextItemSubClass`
2216 ADD CONSTRAINT `TextItemSubClass_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextItemSubClass` (`ID`),
2217 ADD CONSTRAINT `TextItemSubClass_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2218 ADD CONSTRAINT `TextItemSubClass_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2219
2220--
2221-- Omezení pro tabulku `TextMangosCommand`
2222--
2223ALTER TABLE `TextMangosCommand`
2224 ADD CONSTRAINT `TextMangosCommand_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2225 ADD CONSTRAINT `TextMangosCommand_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2226
2227--
2228-- Omezení pro tabulku `TextMangosString`
2229--
2230ALTER TABLE `TextMangosString`
2231 ADD CONSTRAINT `TextMangosString_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextMangosString` (`ID`),
2232 ADD CONSTRAINT `TextMangosString_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2233 ADD CONSTRAINT `TextMangosString_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2234
2235--
2236-- Omezení pro tabulku `TextNPC`
2237--
2238ALTER TABLE `TextNPC`
2239 ADD CONSTRAINT `TextNPC_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2240 ADD CONSTRAINT `TextNPC_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2241
2242--
2243-- Omezení pro tabulku `TextNPCOption`
2244--
2245ALTER TABLE `TextNPCOption`
2246 ADD CONSTRAINT `TextNPCOption_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextNPCOption` (`ID`),
2247 ADD CONSTRAINT `TextNPCOption_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2248 ADD CONSTRAINT `TextNPCOption_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2249
2250--
2251-- Omezení pro tabulku `TextPage`
2252--
2253ALTER TABLE `TextPage`
2254 ADD CONSTRAINT `TextPage_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2255 ADD CONSTRAINT `TextPage_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2256
2257--
2258-- Omezení pro tabulku `TextQuest`
2259--
2260ALTER TABLE `TextQuest`
2261 ADD CONSTRAINT `TextQuest_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2262 ADD CONSTRAINT `TextQuest_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2263 ADD CONSTRAINT `TextQuest_ibfk_3` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2264 ADD CONSTRAINT `TextQuest_ibfk_4` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2265
2266--
2267-- Omezení pro tabulku `TextSD2EventAI`
2268--
2269ALTER TABLE `TextSD2EventAI`
2270 ADD CONSTRAINT `TextSD2EventAI_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextSD2EventAI` (`ID`),
2271 ADD CONSTRAINT `TextSD2EventAI_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2272 ADD CONSTRAINT `TextSD2EventAI_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2273
2274--
2275-- Omezení pro tabulku `TextSD2Script`
2276--
2277ALTER TABLE `TextSD2Script`
2278 ADD CONSTRAINT `TextSD2Script_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextSD2Script` (`ID`),
2279 ADD CONSTRAINT `TextSD2Script_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2280 ADD CONSTRAINT `TextSD2Script_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2281
2282--
2283-- Omezení pro tabulku `TextSkillCategory`
2284--
2285ALTER TABLE `TextSkillCategory`
2286 ADD CONSTRAINT `TextSkillCategory_ibfk_8` FOREIGN KEY (`Take`) REFERENCES `TextSkillCategory` (`ID`),
2287 ADD CONSTRAINT `TextSkillCategory_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2288 ADD CONSTRAINT `TextSkillCategory_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2289 ADD CONSTRAINT `TextSkillCategory_ibfk_3` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2290 ADD CONSTRAINT `TextSkillCategory_ibfk_4` FOREIGN KEY (`User`) REFERENCES `User` (`ID`),
2291 ADD CONSTRAINT `TextSkillCategory_ibfk_5` FOREIGN KEY (`Take`) REFERENCES `TextSkillCategory` (`Id`),
2292 ADD CONSTRAINT `TextSkillCategory_ibfk_6` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2293 ADD CONSTRAINT `TextSkillCategory_ibfk_7` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2294
2295--
2296-- Omezení pro tabulku `TextSkillLine`
2297--
2298ALTER TABLE `TextSkillLine`
2299 ADD CONSTRAINT `TextSkillLine_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextSkillLine` (`ID`),
2300 ADD CONSTRAINT `TextSkillLine_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2301 ADD CONSTRAINT `TextSkillLine_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2302
2303--
2304-- Omezení pro tabulku `TextSpell`
2305--
2306ALTER TABLE `TextSpell`
2307 ADD CONSTRAINT `TextSpell_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextSpell` (`ID`),
2308 ADD CONSTRAINT `TextSpell_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2309 ADD CONSTRAINT `TextSpell_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2310
2311--
2312-- Omezení pro tabulku `TextTalentTab`
2313--
2314ALTER TABLE `TextTalentTab`
2315 ADD CONSTRAINT `TextTalentTab_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextTalentTab` (`ID`),
2316 ADD CONSTRAINT `TextTalentTab_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2317 ADD CONSTRAINT `TextTalentTab_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2318
2319--
2320-- Omezení pro tabulku `TextTotemCategory`
2321--
2322ALTER TABLE `TextTotemCategory`
2323 ADD CONSTRAINT `TextTotemCategory_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextTotemCategory` (`ID`),
2324 ADD CONSTRAINT `TextTotemCategory_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2325 ADD CONSTRAINT `TextTotemCategory_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2326
2327--
2328-- Omezení pro tabulku `TextTransport`
2329--
2330ALTER TABLE `TextTransport`
2331 ADD CONSTRAINT `TextTransport_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextTransport` (`ID`),
2332 ADD CONSTRAINT `TextTransport_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2333 ADD CONSTRAINT `TextTransport_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2334
2335--
2336-- Omezení pro tabulku `TextWorldStateUI`
2337--
2338ALTER TABLE `TextWorldStateUI`
2339 ADD CONSTRAINT `TextWorldStateUI_ibfk_3` FOREIGN KEY (`Take`) REFERENCES `TextWorldStateUI` (`ID`),
2340 ADD CONSTRAINT `TextWorldStateUI_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2341 ADD CONSTRAINT `TextWorldStateUI_ibfk_2` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);
2342
2343--
2344-- Omezení pro tabulku `User`
2345--
2346ALTER TABLE `User`
2347 ADD CONSTRAINT `User_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`),
2348 ADD CONSTRAINT `User_ibfk_2` FOREIGN KEY (`Team`) REFERENCES `Team` (`Id`);");
2349
2350 $Manager->Execute('INSERT INTO `DbVersion` (`Id` ,`Revision`) VALUES ("1", "498")');
2351 $Manager->Execute('INSERT INTO `Language` (`Id` ,`Name` ,`Enabled`)VALUES (NULL , "Angličtina", 0);');
2352 $Manager->Execute('INSERT INTO `Language` (`Id` ,`Name` ,`Enabled`)VALUES (NULL , "Čeština", 1);');
2353 $Manager->Execute("INSERT INTO `LogType` (`Id`, `Name`, `Color`, `Description`) VALUES
2354(1, 'Překlady', 'green', 'Operace s překlady'),
2355(2, 'Stažení', 'brown', 'Stáhnutí souboru'),
2356(3, 'Uživatelé', 'blue', 'Přihlášení uživatelů, nastavení, registrace'),
2357(4, 'Moderátor', 'orange', 'Operace administrátorů a moderátorů'),
2358(10, 'Chyby', 'red', 'Zachycené chybové hlášení'),
2359(11, 'Import', 'magenta', 'Záznam změn při importu'),
2360(12, 'Export', '#1080F0', 'Záznam akcí s exporty'),
2361(13, 'CzWoW', 'violet', 'Překládací addon CzWoW'),
2362(14, 'Administrace', 'olive', 'Administrativní akce');");
2363 $Manager->Execute("INSERT INTO `ClientVersion` (`Id`, `Version`, `BuildNumber`, `ReleaseDate`, `Title`, `Imported`) VALUES
2364(1, '3.1.3', 9947, '2009-06-02', '', 0),
2365(2, '3.1.2', 9901, '2009-05-15', '', 0),
2366(3, '3.1.1a', 9835, '2009-04-28', '', 0),
2367(4, '3.1.1', 9806, '2009-04-21', '', 0),
2368(5, '3.1.0', 9767, '2009-04-14', 'Secrets of Ulduar', 0),
2369(6, '3.0.9', 9551, '2009-02-10', '', 0),
2370(7, '3.0.8a', 9506, '2009-01-27', '', 0),
2371(8, '3.0.8', 9464, '2009-01-20', '', 0),
2372(9, '3.0.3', 9183, '2008-11-04', '', 0),
2373(10, '3.0.2', 9056, '2008-10-14', 'Echoes of Doom', 0),
2374(11, '2.4.3', 8606, '2008-07-15', '', 0),
2375(12, '2.4.2', 8209, '2008-06-13', '', 0),
2376(13, '2.4.1', 8125, '2008-04-01', '', 0),
2377(14, '2.4.0', 8089, '2008-03-25', 'Fury of the Sunwell', 0),
2378(15, '2.3.3', 7799, '2008-01-22', '', 0),
2379(16, '2.3.2', 7741, '2008-01-08', '', 0),
2380(17, '2.3.0', 7561, '2007-11-13', 'The Gods of Zul''Aman', 0),
2381(18, '2.2.3', 7359, '2007-10-09', '', 0),
2382(19, '2.2.2', 7318, '2007-10-02', '', 0),
2383(20, '2.2.0', 7272, '2007-09-25', 'Voice Chat!', 0),
2384(21, '2.1.3', 6898, '2007-07-10', '', 0),
2385(22, '2.1.2', 6803, '2007-06-19', '', 0),
2386(23, '2.1.1', 6739, '2007-06-05', '', 0),
2387(24, '2.1.0a', 6729, '2007-05-22', '', 0),
2388(25, '2.1.0', 6692, '2007-05-22', 'The Black Temple', 0),
2389(26, '2.0.12', 6546, '2007-04-03', '', 0),
2390(27, '2.0.10', 6448, '2007-03-06', '', 0),
2391(28, '2.0.8', 6403, '2007-02-16', '', 0),
2392(29, '2.0.7', 6383, '2007-02-13', '', 0),
2393(30, '2.0.6', 6337, '2007-01-23', '', 0),
2394(31, '2.0.5', 6320, '2007-01-14', '', 0),
2395(32, '2.0.4', 6320, '2007-01-12', '', 0),
2396(33, '2.0.3', 6299, '2007-01-09', '', 0),
2397(34, '2.0.1', 6180, '2006-12-05', 'Before the Storm', 0),
2398(35, '1.12.2', 6005, '2006-11-13', '', 0),
2399(36, '1.12.1', 5875, '2006-09-26', '', 0),
2400(37, '1.12.0', 5595, '2006-09-22', 'Drums of War', 0),
2401(38, '1.11.2', 5464, '2006-07-11', '', 0),
2402(39, '1.11.1', 5462, '2006-06-28', '', 0),
2403(40, '1.11.0', 5428, '2006-06-20', 'Shadow of the Necropolis', 0),
2404(41, '1.10.2', 5302, '2006-05-02', '', 0),
2405(42, '1.10.1', 5230, '2006-04-11', '', 0),
2406(43, '1.10.0', 5195, '2006-03-28', 'Storms of Azeroth', 0),
2407(44, '1.9.4', 5086, '2006-03-14', '', 0),
2408(45, '1.9.3', 5059, '2006-02-07', 'Love is in the Air', 0),
2409(46, '1.9.2', 4996, '2006-01-12', '', 0),
2410(47, '1.9.1', 4983, '2006-01-10', '', 0),
2411(48, '1.9.0', 4937, '2006-01-03', 'The Gates of Ahn''Qiraj', 0),
2412(49, '1.8.4', 4878, '2005-12-05', '', 0),
2413(50, '1.8.3', 4807, '2005-11-15', '', 0),
2414(51, '1.8.2', 4784, '2005-10-27', '', 0),
2415(52, '1.8.1', 4769, '2005-10-25', '', 0),
2416(53, '1.8.0', 4735, '2005-10-10', 'Dragons of Nightmare', 0),
2417(54, '1.7.1', 4695, '2005-09-22', '', 0),
2418(55, '1.7.0', 4671, '2006-09-13', 'Rise of the Blood God', 0),
2419(56, '1.6.1', 4544, '2005-08-02', '', 0),
2420(57, '1.6.0', 4500, '2005-07-12', 'Assault on Blackwing Lair', 0),
2421(58, '1.5.1', 4449, '2005-06-14', '', 0),
2422(59, '1.5.0', 4442, '2005-06-07', 'Battlegrounds', 0),
2423(60, '1.4.2', 4375, '2005-05-03', '', 0),
2424(61, '1.4.1', 4364, '2005-05-03', '', 0),
2425(62, '1.4.0', 4341, '2005-04-08', 'The Call to War', 0),
2426(63, '1.3.2', 4299, '2005-03-22', '', 0),
2427(64, '1.3.1', 4297, '2005-03-22', '', 0),
2428(65, '1.3.0', 4284, '2005-03-07', 'Ruins of the Dire Maul', 0),
2429(66, '1.2.4', 4222, '2005-02-22', '', 0),
2430(67, '1.2.3', 4211, '2005-02-22', '', 0),
2431(68, '1.2.2', 4196, '2005-02-15', '', 0),
2432(69, '1.2.1', 4150, '2004-12-21', '', 0),
2433(70, '1.2.0', 4149, '2004-12-18', 'Mysteries of Maraudon', 0),
2434(71, '1.1.2', 4125, '2004-12-06', '', 0),
2435(72, '1.1.1', 4062, '2004-11-17', '', 0),
2436(73, '1.1.0', 4044, '2004-11-07', 'World of Warcraft', 0),
2437(74, '3.2.0', 10192, '2009-08-05', 'Call of the Crusade', 0),
2438(75, '3.3.0', 10958, '2009-11-08', 'Fall of the Lich King', 0),
2439(76, '3.2.2a', 10505, '2009-09-25', '', 0),
2440(77, '3.2.2', 10482, '2009-09-22', '', 0),
2441(78, '3.2.0a', 10314, '2009-08-19', '', 0),
2442(79, '3.3.0a', 11159, '2009-11-14', '', 0),
2443(80, '3.3.2', 11403, '2010-02-02', '', 0),
2444(81, '3.3.3', 11685, '2010-03-23', '', 0),
2445(82, '3.3.3a', 11723, '2010-03-26', '', 0),
2446(83, '3.3.5', 12213, '2010-06-22', 'Defending the Ruby Sanctum', 0),
2447(84, '3.3.5a', 12340, '2010-06-29', '', 0),
2448(85, '4.0.1', 13164, '2010-10-12', 'Cataclysm Systems', 0),
2449(86, '4.0.3', 13202, '2010-11-17', 'The Shattering', 0),
2450(87, '4.0.1a', 13205, '2010-10-26', '', 0),
2451(88, '4.0.3a', 13329, '2010-11-23', '', 0),
2452(89, '4.0.6', 13596, '2011-02-08', '', 0),
2453(90, '4.0.6a', 13623, '2012-02-11', '', 0),
2454(91, '4.1.0', 13914, '2011-04-26', 'Rise of the Zandalari', 0),
2455(92, '4.2.0', 14333, '2011-06-28', 'Rage of the Firelands', 0),
2456(93, '4.2.0a', 14480, '2011-08-08', '', 0),
2457(94, '4.2.2', 14545, '2011-08-30', '', 0),
2458(95, '4.3.0', 15005, '2011-11-29', 'Hour of Twilight', 0),
2459(96, '4.3.0a', 15050, '2011-12-02', '', 0),
2460(97, '4.3.2', 15211, '2012-01-31', '', 0),
2461(98, '4.3.3', 15354, '2012-02-28', '', 0),
2462(99, '4.3.4', 15595, '2012-04-17', '', 0),
2463(100, '5.0.4', 16016, '2012-08-27', 'Mists of Pandaria', 0),
2464(101, '5.0.5', 16057, '2012-09-13', '', 0),
2465(102, '5.0.5b', 16135, '2012-10-11', '', 0),
2466(103, '5.1.0', 16309, '2012-11-27', 'Landfall', 0),
2467(104, '5.1.0a', 16357, '2012-12-10', '', 0);");
2468 $Manager->Execute("INSERT INTO `ExportOutputType` (`Id`, `Name`) VALUES
2469 (1, 'MaNGOS SQL - přímo zobrazit'),
2470 (2, 'MaNGOS SQL - komprimovaný soubor'),
2471 (3, 'AoWoW SQL - přímo zobrazit'),
2472 (4, 'AoWoW SQL - komprimovaný soubor'),
2473 (5, 'XML - přímo zobrazit'),
2474 (6, 'XML - komprimovaný soubor'),
2475 (7, 'Addon - komprimovaný soubor'),
2476 (8, 'Lua skripty - komprimovaný soubor'),
2477 (9, 'DBC soubory');");
2478}
2479
2480function UpdateTo506($Manager)
2481{
2482 global $System;
2483
2484 $DbResult = $System->Database->query('SELECT `TablePrefix` FROM `Group`');
2485 while ($Group = $DbResult->fetch_assoc())
2486 {
2487 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` ADD FOREIGN KEY ( `Language` ) REFERENCES `Language` ('.
2488 '`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
2489 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ;');
2490 $Manager->Execute('UPDATE `'.$Group['TablePrefix'].'` SET `User` = NULL WHERE `User` =0;');
2491 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` ADD FOREIGN KEY ( `User` ) REFERENCES `User` ('.
2492 '`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
2493 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` CHANGE `Take` `Take` INT( 11 ) NULL DEFAULT NULL ;');
2494 $Manager->Execute('UPDATE `'.$Group['TablePrefix'].'` SET `Take` = NULL WHERE `Take` =0;');
2495 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` CHANGE `ID` `ID` INT( 11 ) NOT NULL AUTO_INCREMENT; ');
2496 $Manager->Execute('UPDATE `'.$Group['TablePrefix'].'` SET `Take` = NULL WHERE NOT EXISTS (SELECT `Id` FROM ('.
2497 'SELECT `Id` FROM `'.$Group['TablePrefix'].'` ) AS `T` WHERE `T`.`Id` = `'.$Group['TablePrefix'].
2498 '`.`Take` ) AND `Take` IS NOT NULL');
2499 $Manager->Execute('ALTER TABLE `'.$Group['TablePrefix'].'` ADD FOREIGN KEY ( `Take` ) REFERENCES `'.$Group['TablePrefix'].'` ('.
2500 '`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
2501 }
2502 $Manager->Execute('ALTER TABLE `TextPage` CHANGE `Text` `Text` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ');
2503 $Manager->Execute('ALTER TABLE `TextQuest` CHANGE `Title` `Title` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2504 'CHANGE `Details` `Details` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2505 'CHANGE `Objectives` `Objectives` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2506 'CHANGE `OfferRewardText` `OfferRewardText` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2507 'CHANGE `RequestItemsText` `RequestItemsText` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2508 'CHANGE `EndText` `EndText` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2509 'CHANGE `ObjectiveText1` `ObjectiveText1` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2510 'CHANGE `ObjectiveText2` `ObjectiveText2` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2511 'CHANGE `ObjectiveText3` `ObjectiveText3` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,'.
2512 'CHANGE `ObjectiveText4` `ObjectiveText4` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;');
2513}
2514
2515function UpdateTo510($Manager)
2516{
2517 $Manager->Execute('ALTER TABLE `News` ADD `Title` VARCHAR( 255 ) NOT NULL AFTER `Time`');
2518 $Manager->Execute('UPDATE `News` SET `Title` = (SELECT `Name` FROM `User` AS `T` WHERE `T`.`ID` = `User`)');
2519}
2520
2521function UpdateTo524($Manager)
2522{
2523 $Manager->Execute('ALTER TABLE `User` ADD `PreferredVersion` INT NULL DEFAULT NULL');
2524 $Manager->Execute('ALTER TABLE `User` ADD INDEX ( `PreferredVersion` )');
2525 $Manager->Execute('ALTER TABLE `User` ADD FOREIGN KEY ( `PreferredVersion` ) '.
2526 'REFERENCES `ClientVersion` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
2527 $Manager->Execute('ALTER TABLE `User` ADD `Info` TEXT NOT NULL');
2528}
2529
2530function UpdateTo537($Manager)
2531{
2532 // Set all string collation to utf8 general
2533 $DbResult = $Manager->Execute("SHOW TABLES");
2534 while ($DbRow = $DbResult->fetch_row())
2535 {
2536 $Manager->Execute("ALTER TABLE `".$DbRow[0]."` CONVERT TO CHARACTER SET utf8");
2537 }
2538}
2539
2540function UpdateTo539($Manager)
2541{
2542 $Manager->Execute("CREATE TABLE IF NOT EXISTS `UserTrace` (
2543 `Id` int(11) NOT NULL AUTO_INCREMENT,
2544 `User` int(11) NOT NULL,
2545 `LastLogin` datetime NOT NULL,
2546 `LastLogout` datetime NOT NULL,
2547 `LastIP` varchar(16) NOT NULL,
2548 `UserAgent` varchar(255) NOT NULL,
2549 PRIMARY KEY (`Id`),
2550 KEY `User` (`User`)
2551) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;");
2552 $Manager->Execute("ALTER TABLE `UserTrace`
2553 ADD CONSTRAINT `UserTrace_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);");
2554 $Manager->Execute("INSERT INTO `UserTrace` (".
2555 "SELECT NULL AS `Id` , `User`.`Id` AS `User` , `User`.`LastLogin` AS `LastLogin` , `User`.`LastLogout` AS `LastLogout` , `User`.`LastIP` AS `LastIP` , '' AS `UserAgent` ".
2556 "FROM `User` WHERE 1 ) ");
2557 $Manager->Execute("ALTER TABLE `User` DROP `LastIP`, DROP `LastLogin`, DROP `LastLogout`;");
2558}
2559
2560function UpdateTo543($Manager)
2561{
2562 $Manager->Execute('ALTER TABLE `Group` ADD INDEX ( `Name` )');
2563}
2564
2565function UpdateTo567($Manager)
2566{
2567 $Manager->Execute('ALTER TABLE `Log` ADD `URL` VARCHAR( 255 ) NOT NULL ;');
2568}
2569
2570function UpdateTo574($Manager)
2571{
2572 $Manager->Execute('CREATE TABLE IF NOT EXISTS `WikiPage` (
2573 `Id` int(11) NOT NULL AUTO_INCREMENT,
2574 `Name` varchar(255) NOT NULL,
2575 `NormalizedName` varchar(255) NOT NULL,
2576 `VisibleInMenu` int(11) NOT NULL,
2577 PRIMARY KEY (`Id`),
2578 UNIQUE KEY `Name` (`Name`),
2579 KEY `VisibleInMenu` (`VisibleInMenu`)
2580) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
2581
2582 $Manager->Execute('CREATE TABLE IF NOT EXISTS `WikiPageContent` (
2583 `Id` int(11) NOT NULL AUTO_INCREMENT,
2584 `Page` int(11) NOT NULL,
2585 `Time` datetime NOT NULL,
2586 `Content` text NOT NULL,
2587 `User` int(11) NOT NULL,
2588 PRIMARY KEY (`Id`),
2589 KEY `User` (`User`),
2590 KEY `Page` (`Page`)
2591) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
2592
2593 $Manager->Execute('ALTER TABLE `WikiPageContent`
2594ADD CONSTRAINT `WikiPageContent_ibfk_2` FOREIGN KEY (`Page`) REFERENCES `WikiPage` (`Id`),
2595ADD CONSTRAINT `WikiPageContent_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);');
2596}
2597
2598function UpdateTo585($Manager)
2599{
2600 $Manager->Execute('CREATE TABLE IF NOT EXISTS `APIToken` (
2601 `Id` int(11) NOT NULL AUTO_INCREMENT,
2602 `User` int(11) NOT NULL,
2603 `Token` varchar(255) NOT NULL,
2604 PRIMARY KEY (`Id`),
2605 KEY `User` (`User`)
2606) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
2607 $Manager->Execute('ALTER TABLE `APIToken`
2608 ADD CONSTRAINT `APIToken_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);');
2609}
2610
2611function UpdateTo600($Manager)
2612{
2613 $Manager->Execute("INSERT INTO `LogType` (`Id` ,`Name` ,`Color` ,`Description`)
2614VALUES (NULL , 'Nenalezené', 'teal', 'Nenalezené stránky');");
2615}
2616
2617function UpdateTo604($Manager)
2618{
2619 $Manager->Execute("INSERT INTO `ClientVersion` (`Id` ,`Version` ,`BuildNumber` ,`ReleaseDate` ,`Title` ,`Imported`)
2620VALUES ( NULL , '5.2.0', '16650', '2013-03-05', 'The Thunder King', 0
2621), ( NULL , '5.3.0', '16977', '2013-05-21', 'Escalation', 0
2622), ( NULL , '5.4.0', '17359', '2013-09-10', 'Siege of Orgrimmar', 0 );");
2623}
2624
2625function UpdateTo609($Manager)
2626{
2627 $Manager->Execute('CREATE TABLE IF NOT EXISTS `Locale` (
2628 `Id` int(11) NOT NULL AUTO_INCREMENT,
2629 `Language` int(11) NOT NULL,
2630 `Original` varchar(255) NOT NULL,
2631 `Translated` varchar(255) NOT NULL,
2632 `Fuzzy` int(11) NOT NULL,
2633 PRIMARY KEY (`Id`),
2634 KEY `Language` (`Language`)
2635) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
2636
2637 $Manager->Execute('ALTER TABLE `Locale`
2638 ADD CONSTRAINT `Locale_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`);');
2639}
2640
2641function UpdateTo610($Manager)
2642{
2643 $Manager->Execute('ALTER TABLE `Language` ADD `Default` INT NOT NULL ,
2644ADD `Code` VARCHAR( 255 ) NOT NULL ;');
2645 $Manager->Execute('UPDATE `Language` SET `Default` = 1,
2646`Code` = "en" WHERE `Language`.`Name` ="Angličitna";');
2647 $Manager->Execute('UPDATE `Language` SET `Code` = "cs" WHERE `Language`.`Name` ="Čeština";');
2648 $Manager->Execute('UPDATE `Language` SET `Code` = "sk" WHERE `Language`.`Name` ="Slovenština";');
2649}
2650
2651function UpdateTo639($Manager)
2652{
2653 $Manager->Execute('ALTER TABLE `ServerList` ADD `ClientVersion` INT NOT NULL ,
2654ADD INDEX ( `ClientVersion` ) ;');
2655 $Manager->Execute('ALTER TABLE `ServerList` ADD FOREIGN KEY ( `ClientVersion` ) REFERENCES `ClientVersion` (
2656`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
2657 $Manager->Execute('RENAME TABLE `ServerList` TO `Server` ;');
2658 $Manager->Execute('ALTER TABLE `Server` ADD `Description` TEXT NOT NULL ;');
2659 $Manager->Execute('ALTER TABLE `Server` CHANGE `OnlineState` `LastOnlineTime` DATETIME NOT NULL ;');
2660 $Manager->Execute('ALTER TABLE `Server` ADD INDEX (`UserCreate`)');
2661 $Manager->Execute('ALTER TABLE `Server` ADD FOREIGN KEY ( `UserCreate` ) REFERENCES `User` (
2662`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
2663 $Manager->Execute('ALTER TABLE `Server` ADD `CheckIP` VARCHAR( 16 ) NOT NULL ,
2664ADD `CheckPort` INT NOT NULL ;');
2665}
2666
2667function UpdateTo646($Manager)
2668{
2669 $Manager->Execute('ALTER TABLE `Export` ADD `AllUsers` TINYINT( 1 ) NOT NULL ;');
2670
2671}
2672
2673function UpdateTo666($Manager)
2674{
2675 $Manager->Execute('INSERT INTO `ExportOutputType` (`Id` ,`Name`) VALUES (\'10\' , \'Instalace - Instalační soubor pro klienta\');');
2676 $Manager->Execute('INSERT INTO `ExportVersion` (`Id` ,`ExportType` ,`ClientVersion`)VALUES (NULL , \'10\', \'84\');');
2677}
2678
2679function UpdateTo678($Manager)
2680{
2681 $Manager->Execute('INSERT INTO `ExportVersion` (`Id` ,`ExportType` ,`ClientVersion`)VALUES (NULL , \'10\', \'11\');');
2682}
2683
2684function UpdateTo695($Manager)
2685{
2686 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ExportGroupItem` (`Id` int(11) NOT NULL AUTO_INCREMENT,'.
2687 '`Export` int(11) NOT NULL,`GroupItem` int(11) NOT NULL, PRIMARY KEY (`Id`), KEY `Export` (`Export`),'.
2688 ' KEY `GroupItem` (`GroupItem`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;');
2689 $Manager->Execute('ALTER TABLE `ExportGroupItem`'.
2690 'ADD CONSTRAINT `ExportGroupItem_ibfk_1` FOREIGN KEY (`Export`) REFERENCES `Export` (`Id`),'.
2691 'ADD CONSTRAINT `ExportGroupItem_ibfk_2` FOREIGN KEY (`GroupItem`) REFERENCES `GroupItem` (`Id`);');
2692}
2693
2694function UpdateTo712($Manager)
2695{
2696 $Manager->Execute('CREATE TABLE IF NOT EXISTS `UserOnline` (
2697 `Id` int(11) NOT NULL AUTO_INCREMENT,
2698 `User` int(11) DEFAULT NULL,
2699 `ActivityTime` datetime NULL,
2700 `LoginTime` datetime NULL,
2701 `SessionId` varchar(255) NOT NULL DEFAULT "",
2702 `IpAddress` varchar(16) NOT NULL DEFAULT "",
2703 `HostName` varchar(255) NOT NULL DEFAULT "",
2704 `ScriptName` varchar(255) NOT NULL,
2705 `StayLogged` int(11) NOT NULL,
2706 PRIMARY KEY (`Id`),
2707 KEY `User` (`User`)
2708) ENGINE=MEMORY DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
2709}
2710
2711function UpdateTo716($Manager)
2712{
2713 $Manager->Execute('ALTER TABLE `Export` ADD `Featured` TINYINT NOT NULL');
2714}
2715
2716function UpdateTo725($Manager)
2717{
2718 $Manager->Execute('ALTER TABLE `UserOnline` ADD `StayLoggedHash` VARCHAR( 40 ) NOT NULL ;');
2719}
2720
2721function UpdateTo731($Manager)
2722{
2723 $Manager->Execute('ALTER TABLE `ExportTask` ADD `Progress` TINYINT NOT NULL ;');
2724}
2725
2726function UpdateTo732($Manager)
2727{
2728 $Manager->Execute('ALTER TABLE `ExportTask` CHANGE `Progress` `Progress` DOUBLE( 4, 2 ) NOT NULL ;');
2729}
2730
2731function UpdateTo748($Manager)
2732{
2733 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ForumText` (
2734 `ID` int(11) NOT NULL AUTO_INCREMENT,
2735 `User` int(11) DEFAULT NULL,
2736 `UserName` text NOT NULL,
2737 `Text` text NOT NULL,
2738 `Date` datetime NOT NULL,
2739 `IP` text NOT NULL,
2740 `Thread` int(11) DEFAULT NULL,
2741 PRIMARY KEY (`ID`),
2742 KEY `date` (`Date`),
2743 KEY `User` (`User`),
2744 KEY `Thread` (`Thread`)
2745) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
2746 ');
2747
2748 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ForumThread` (
2749 `ID` int(11) NOT NULL AUTO_INCREMENT,
2750 `User` int(11) DEFAULT NULL,
2751 `UserName` text NOT NULL,
2752 `Text` text NOT NULL,
2753 `Date` datetime NOT NULL,
2754 `IP` text NOT NULL,
2755 PRIMARY KEY (`ID`),
2756 KEY `date` (`Date`),
2757 KEY `User` (`User`)
2758) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
2759 ');
2760
2761 $Manager->Execute('ALTER TABLE `ForumText`
2762 ADD CONSTRAINT `ForumText_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);');
2763 $Manager->Execute('ALTER TABLE `ForumText`
2764 ADD CONSTRAINT `ForumThread_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);');
2765 $Manager->Execute('ALTER TABLE `ForumText`
2766 ADD CONSTRAINT `ForumText_ibfk_2` FOREIGN KEY (`Thread`) REFERENCES `ForumThread` (`ID`);');
2767}
2768
2769function UpdateTo787($Manager)
2770{
2771 $Manager->Execute('CREATE TABLE IF NOT EXISTS `UserTag` (
2772 `ID` int(11) NOT NULL AUTO_INCREMENT,
2773 `User` int(11) DEFAULT NULL,
2774 `UserTagType` int(11) DEFAULT NULL,
2775 PRIMARY KEY (`ID`),
2776 KEY `User` (`User`),
2777 KEY `UserTagType` (`UserTagType`)
2778) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
2779 ');
2780 $Manager->Execute('CREATE TABLE IF NOT EXISTS `UserTagType` (
2781 `ID` int(11) NOT NULL AUTO_INCREMENT,
2782 `Text` text NOT NULL,
2783 PRIMARY KEY (`ID`)
2784) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
2785');
2786 $Manager->Execute('ALTER TABLE `UserTag`
2787 ADD CONSTRAINT `UserTag_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);');
2788 $Manager->Execute('ALTER TABLE `UserTag`
2789 ADD CONSTRAINT `UserTag_ibfk_2` FOREIGN KEY (`UserTagType`) REFERENCES `UserTagType` (`ID`);');
2790 $Manager->Execute('INSERT INTO `UserTagType` (`ID` , `Text`)
2791VALUES (
2792NULL , "Překládám ve jménech pouze slova jasného významu jako Les, Město (Stormwind city => Město Stormwind)"
2793), (
2794NULL , "Za přeloženým jménem nechávám ještě původní jméno v uvozovkách (Stormwind city => Město Stormwind \"Stormwind city\")"
2795), (
2796NULL , "Jména nepřekládám (Stormwind city => Stormwind city)"
2797), (
2798NULL , "Překládám jména i jako složeniny (Stormwind city => Město Větrnébouře)"
2799);');
2800}
2801
2802function UpdateTo803($Manager)
2803{
2804 $Manager->Execute('ALTER TABLE `Referrer` CHANGE `Show` `Visible` INT( 11 ) NOT NULL DEFAULT "1";');
2805 $Manager->Execute('ALTER TABLE `Referrer` ADD `LastIP` VARCHAR( 16 ) NOT NULL ;');
2806}
2807
2808function UpdateTo811($Manager)
2809{
2810 $Manager->Execute('CREATE TABLE IF NOT EXISTS `BlackList` (
2811 `Id` int(11) NOT NULL AUTO_INCREMENT,
2812 `Time` datetime NOT NULL,
2813 `IP` varchar(255) NOT NULL,
2814 PRIMARY KEY (`Id`)
2815 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
2816}
2817
2818function UpdateTo846($Manager)
2819{
2820 // Languages
2821 $Manager->Execute('UPDATE `Language` SET `Name` = "English", `Code` = "en" WHERE `Language`.`Name` = "Angličtina";');
2822 $Manager->Execute('UPDATE `Language` SET `Name` = "Czech" WHERE `Language`.`Name` = "Čeština";');
2823 $Manager->Execute('UPDATE `Language` SET `Name` = "Slovak" WHERE `Language`.`Name` = "Slovenština";');
2824
2825 // Group names
2826 $Manager->Execute('UPDATE `Group` SET `Name` = "Quests" WHERE `Group`.`Name` = "Výpravy"');
2827 $Manager->Execute('UPDATE `Group` SET `Name` = "Books" WHERE `Group`.`Name` = "Knížky"');
2828 $Manager->Execute('UPDATE `Group` SET `Name` = "NPC speech" WHERE `Group`.`Name` = "Slova NPC"');
2829 $Manager->Execute('UPDATE `Group` SET `Name` = "Items" WHERE `Group`.`Name` = "Věci"');
2830 $Manager->Execute('UPDATE `Group` SET `Name` = "Game objects" WHERE `Group`.`Name` = "Herní objekty"');
2831 $Manager->Execute('UPDATE `Group` SET `Name` = "Creature names" WHERE `Group`.`Name` = "Jména bytostí"');
2832 $Manager->Execute('UPDATE `Group` SET `Name` = "MaNGOS messages" WHERE `Group`.`Name` = "Zprávy MaNGOSu"');
2833 $Manager->Execute('UPDATE `Group` SET `Name` = "MaNGOS commands" WHERE `Group`.`Name` = "Popis GM příkazů"');
2834 $Manager->Execute('UPDATE `Group` SET `Name` = "ScriptDev2 scripts" WHERE `Group`.`Name` = "EventAI"');
2835 $Manager->Execute('UPDATE `Group` SET `Name` = "ScriptDev2 EventAI" WHERE `Group`.`Name` = "Popis GM příkazů"');
2836 $Manager->Execute('UPDATE `Group` SET `Name` = "Game tips" WHERE `Group`.`Name` = "Herní tipy"');
2837 $Manager->Execute('UPDATE `Group` SET `Name` = "Spells" WHERE `Group`.`Name` = "Kouzla"');
2838 $Manager->Execute('UPDATE `Group` SET `Name` = "Client interface" WHERE `Group`.`Name` = "Rozhraní klienta"');
2839 $Manager->Execute('UPDATE `Group` SET `Name` = "Login interface" WHERE `Group`.`Name` = "Rozhraní přihlašování"');
2840 $Manager->Execute('UPDATE `Group` SET `Name` = "NPC options" WHERE `Group`.`Name` = "Možnosti NPC"');
2841 $Manager->Execute('UPDATE `Group` SET `Name` = "Transports" WHERE `Group`.`Name` = "Doprava"');
2842 $Manager->Execute('UPDATE `Group` SET `Name` = "Taverns" WHERE `Group`.`Name` = "Krčmy"');
2843 $Manager->Execute('UPDATE `Group` SET `Name` = "Teleports" WHERE `Group`.`Name` = "Teleporty"');
2844 $Manager->Execute('UPDATE `Group` SET `Name` = "Achievements" WHERE `Group`.`Name` = "Úspěchy"');
2845 $Manager->Execute('UPDATE `Group` SET `Name` = "Achievement category" WHERE `Group`.`Name` = "Kategorie úspěchů"');
2846 $Manager->Execute('UPDATE `Group` SET `Name` = "Achievement criteria" WHERE `Group`.`Name` = "Kritéria úspěchů"');
2847 $Manager->Execute('UPDATE `Group` SET `Name` = "Interface localization" WHERE `Group`.`Name` = "Rozhraní národní"');
2848 $Manager->Execute('UPDATE `Group` SET `Name` = "Area POI" WHERE `Group`.`Name` = "Body zájmu oblastí"');
2849 $Manager->Execute('UPDATE `Group` SET `Name` = "World state" WHERE `Group`.`Name` = "Stav světa"');
2850 $Manager->Execute('UPDATE `Group` SET `Name` = "Totem category" WHERE `Group`.`Name` = "Kategorie totemů"');
2851 $Manager->Execute('UPDATE `Group` SET `Name` = "Talent tabs" WHERE `Group`.`Name` = "Záložky talentů"');
2852 $Manager->Execute('UPDATE `Group` SET `Name` = "Skills" WHERE `Group`.`Name` = "Dovednosti"');
2853 $Manager->Execute('UPDATE `Group` SET `Name` = "Character classes" WHERE `Group`.`Name` = "Třídy postav"');
2854 $Manager->Execute('UPDATE `Group` SET `Name` = "Chat channels" WHERE `Group`.`Name` = "Kanály pro povídání"');
2855 $Manager->Execute('UPDATE `Group` SET `Name` = "Character races" WHERE `Group`.`Name` = "Rasy postav"');
2856 $Manager->Execute('UPDATE `Group` SET `Name` = "Emotes" WHERE `Group`.`Name` = "Emoce"');
2857 $Manager->Execute('UPDATE `Group` SET `Name` = "Areas" WHERE `Group`.`Name` = "Místa"');
2858 $Manager->Execute('UPDATE `Group` SET `Name` = "Skill category" WHERE `Group`.`Name` = "Kategorie dovedností"');
2859 $Manager->Execute('UPDATE `Group` SET `Name` = "Item subclass" WHERE `Group`.`Name` = "Podtřídy věcí"');
2860 $Manager->Execute('UPDATE `Group` SET `Name` = "Creature types" WHERE `Group`.`Name` = "Druh bytostí"');
2861}
2862
2863function UpdateTo848($Manager)
2864{
2865 // Group item names
2866 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Title" WHERE `GroupItem`.`Name` = "Titulek"');
2867 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Details" WHERE `GroupItem`.`Name` = "Podrobnosti"');
2868 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objectives" WHERE `GroupItem`.`Name` = "Úkol"');
2869 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Offered reward text" WHERE `GroupItem`.`Name` = "Text slíbené odměny"');
2870 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Request items text" WHERE `GroupItem`.`Name` = "Popis požadovaných předmětů"');
2871 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "End text" WHERE `GroupItem`.`Name` = "Závěrečný text"');
2872 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 1" WHERE `GroupItem`.`Name` = "Text úkolu 1"');
2873 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 2" WHERE `GroupItem`.`Name` = "Text úkolu 2"');
2874 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 3" WHERE `GroupItem`.`Name` = "Text úkolu 3"');
2875 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 4" WHERE `GroupItem`.`Name` = "Text úkolu 4"');
2876 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Content" WHERE `GroupItem`.`Name` = "Obsah"');
2877 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Name" WHERE `GroupItem`.`Name` = "Jméno"');
2878 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Description" WHERE `GroupItem`.`Name` = "Popis"');
2879 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Castbar caption" WHERE `GroupItem`.`Name` = "Popisek"');
2880 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Subname" WHERE `GroupItem`.`Name` = "Druhé jméno"');
2881 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Subname" WHERE `GroupItem`.`Name` = "Druhé jméno"');
2882 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Help" WHERE `GroupItem`.`Name` = "Nápověda"');
2883 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Default content" WHERE `GroupItem`.`Name` = "Výchozí obsah"');
2884 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Comment" WHERE `GroupItem`.`Name` = "Komentář"');
2885 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Rank" WHERE `GroupItem`.`Name` = "Hodnost"');
2886 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Shortcut" WHERE `GroupItem`.`Name` = "Zkratka"');
2887 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Option text" WHERE `GroupItem`.`Name` = "Text možnosti"');
2888 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Title" WHERE `GroupItem`.`Name` = "Název"');
2889 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Reward" WHERE `GroupItem`.`Name` = "Odměna"');
2890 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Criteria" WHERE `GroupItem`.`Name` = "Kritérium"');
2891 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Location" WHERE `GroupItem`.`Name` = "Umístění"');
2892 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Location 2" WHERE `GroupItem`.`Name` = "Umístění 2"');
2893 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "State" WHERE `GroupItem`.`Name` = "Stav"');
2894 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Short name" WHERE `GroupItem`.`Name` = "Zkrácené jméno"');
2895 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Comprimed name" WHERE `GroupItem`.`Name` = "Zhuštěný název"');
2896 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Facial 1" WHERE `GroupItem`.`Name` = "Vzhled 1"');
2897 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Facial 2" WHERE `GroupItem`.`Name` = "Vzhled 2"');
2898 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Facial 3" WHERE `GroupItem`.`Name` = "Vzhled 3"');
2899 $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Unified" WHERE `GroupItem`.`Name` = "Jednotné"');
2900}
2901
2902function UpdateTo849($Manager)
2903{
2904 // Group item names
2905 $Manager->Execute('CREATE TABLE IF NOT EXISTS `Import` (
2906 `Id` int(11) NOT NULL AUTO_INCREMENT,
2907 `ClientVersion` int(11) NOT NULL,
2908 `Time` datetime NOT NULL,
2909 `User` int(11) NOT NULL,
2910 PRIMARY KEY (`Id`),
2911 KEY (`User`),
2912 KEY (`ClientVersion`)
2913 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;');
2914 $Manager->Execute('ALTER TABLE `Import` ADD FOREIGN KEY (`ClientVersion`) REFERENCES `ClientVersion`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
2915 $Manager->Execute('ALTER TABLE `Import` ADD FOREIGN KEY (`User`) REFERENCES `User`(`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
2916 $Manager->Execute('CREATE TABLE IF NOT EXISTS `ImportGroup` (
2917 `Id` int(11) NOT NULL AUTO_INCREMENT,
2918 `Import` int(11) NOT NULL,
2919 `Group` int(11) NOT NULL,
2920 PRIMARY KEY (`Id`),
2921 KEY (`Import`),
2922 KEY (`Group`)
2923 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;');
2924 $Manager->Execute('ALTER TABLE `ImportGroup` ADD FOREIGN KEY (`Import`) REFERENCES `Import`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
2925 $Manager->Execute('ALTER TABLE `ImportGroup` ADD FOREIGN KEY (`Group`) REFERENCES `Group`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
2926}
2927
2928function UpdateTo857($Manager)
2929{
2930 // Group item names
2931 $Manager->Execute('UPDATE `LogType` SET `Name` = "Translations" WHERE `Name` = "Překlady"');
2932 $Manager->Execute('UPDATE `LogType` SET `Name` = "Download" WHERE `Name` = "Stažení"');
2933 $Manager->Execute('UPDATE `LogType` SET `Name` = "Users" WHERE `Name` = "Uživatelé"');
2934 $Manager->Execute('UPDATE `LogType` SET `Name` = "Moderator" WHERE `Name` = "Moderátor"');
2935 $Manager->Execute('UPDATE `LogType` SET `Name` = "Errors" WHERE `Name` = "Chyby"');
2936 $Manager->Execute('UPDATE `LogType` SET `Name` = "Administration" WHERE `Name` = "Administrace"');
2937 $Manager->Execute('UPDATE `LogType` SET `Name` = "Missing" WHERE `Name` = "Nenalezené"');
2938}
2939
2940function UpdateTo867($Manager)
2941{
2942 $Manager->Execute('ALTER TABLE `ExportTask` ADD `TimeQueued` DATETIME NOT NULL AFTER `Id`;');
2943 $Manager->Execute('UPDATE `ExportTask` SET `TimeQueued` = `TimeStart`');
2944 $Manager->Execute('ALTER TABLE `ExportTask` CHANGE `TimeStart` `TimeStart` DATETIME NULL;');
2945}
2946
2947function UpdateTo872($Manager)
2948{
2949 // Allow to store IPv6 addresses
2950 $Manager->Execute('ALTER TABLE `UserOnline` CHANGE `IpAddress` `IpAddress` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT "";');
2951 $Manager->Execute('ALTER TABLE `UserTrace` CHANGE `LastLogin` `LastLogin` DATETIME NULL;');
2952 $Manager->Execute('ALTER TABLE `UserTrace` CHANGE `LastLogout` `LastLogout` DATETIME NULL;');
2953 $Manager->Execute('UPDATE `UserTrace` SET LastLogin=NULL WHERE CAST(LastLogin AS CHAR(20))="0000-00-00 00:00:00"');
2954 $Manager->Execute('UPDATE `UserTrace` SET LastLogout=NULL WHERE CAST(LastLogout AS CHAR(20))="0000-00-00 00:00:00"');
2955 $Manager->Execute('ALTER TABLE `UserTrace` CHANGE `LastIP` `LastIP` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;');
2956}
2957
2958function UpdateTo873($Manager)
2959{
2960 $Manager->Execute('ALTER TABLE `User` CHANGE `XP` `XP` INT(11) NOT NULL DEFAULT "0";');
2961 $Manager->Execute('ALTER TABLE `User` CHANGE `TranslatedCount` `TranslatedCount` INT(11) NOT NULL DEFAULT "0";');
2962 $Manager->Execute('ALTER TABLE `User` CHANGE `Redirecting` `Redirecting` INT(11) NOT NULL DEFAULT "0";');
2963 $Manager->Execute('ALTER TABLE `User` CHANGE `Info` `Info` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;');
2964 $Manager->Execute('ALTER TABLE `Export` CHANGE `UsedCount` `UsedCount` INT(11) NOT NULL DEFAULT "0";');
2965 $Manager->Execute('ALTER TABLE `Export` CHANGE `AllUsers` `AllUsers` TINYINT(1) NOT NULL DEFAULT "0";');
2966 $Manager->Execute('ALTER TABLE `Export` CHANGE `Featured` `Featured` TINYINT(4) NOT NULL DEFAULT "0";');
2967}
2968
2969function UpdateTo887($Manager)
2970{
2971 $Manager->Execute('ALTER TABLE `Referrer` CHANGE `LastIP` `LastIP` VARCHAR(46) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL;');
2972 $Manager->Execute('ALTER TABLE `ExportTask` CHANGE `Progress` `Progress` DOUBLE(5,2) NOT NULL;');
2973}
2974
2975function UpdateTo892($Manager)
2976{
2977 $Manager->Execute('ALTER TABLE `User` CHANGE `Info` `Info` TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT "";');
2978}
2979
2980function UpdateTo900($Manager)
2981{
2982 $Manager->Execute('ALTER TABLE `ExportTask` CHANGE `TimeQueued` `TimeQueued` DATETIME NULL;');
2983 $Manager->Execute('ALTER TABLE `ExportTask` CHANGE `Progress` `Progress` DOUBLE(5,2) NOT NULL DEFAULT "0";');
2984}
2985
2986class Updates
2987{
2988 function Get()
2989 {
2990 return array(
2991 498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
2992 506 => array('Revision' => 510, 'Function' => 'UpdateTo510'),
2993 510 => array('Revision' => 524, 'Function' => 'UpdateTo524'),
2994 524 => array('Revision' => 537, 'Function' => 'UpdateTo537'),
2995 537 => array('Revision' => 539, 'Function' => 'UpdateTo539'),
2996 539 => array('Revision' => 543, 'Function' => 'UpdateTo543'),
2997 543 => array('Revision' => 567, 'Function' => 'UpdateTo567'),
2998 567 => array('Revision' => 574, 'Function' => 'UpdateTo574'),
2999 574 => array('Revision' => 585, 'Function' => 'UpdateTo585'),
3000 585 => array('Revision' => 600, 'Function' => 'UpdateTo600'),
3001 600 => array('Revision' => 604, 'Function' => 'UpdateTo604'),
3002 604 => array('Revision' => 609, 'Function' => 'UpdateTo609'),
3003 609 => array('Revision' => 610, 'Function' => 'UpdateTo610'),
3004 610 => array('Revision' => 639, 'Function' => 'UpdateTo639'),
3005 639 => array('Revision' => 646, 'Function' => 'UpdateTo646'),
3006 646 => array('Revision' => 666, 'Function' => 'UpdateTo666'),
3007 666 => array('Revision' => 678, 'Function' => 'UpdateTo678'),
3008 678 => array('Revision' => 695, 'Function' => 'UpdateTo695'),
3009 695 => array('Revision' => 712, 'Function' => 'UpdateTo712'),
3010 712 => array('Revision' => 716, 'Function' => 'UpdateTo716'),
3011 716 => array('Revision' => 725, 'Function' => 'UpdateTo725'),
3012 725 => array('Revision' => 731, 'Function' => 'UpdateTo731'),
3013 731 => array('Revision' => 732, 'Function' => 'UpdateTo732'),
3014 732 => array('Revision' => 748, 'Function' => 'UpdateTo748'),
3015 748 => array('Revision' => 787, 'Function' => 'UpdateTo787'),
3016 787 => array('Revision' => 803, 'Function' => 'UpdateTo803'),
3017 803 => array('Revision' => 811, 'Function' => 'UpdateTo811'),
3018 811 => array('Revision' => 846, 'Function' => 'UpdateTo846'),
3019 846 => array('Revision' => 848, 'Function' => 'UpdateTo848'),
3020 848 => array('Revision' => 849, 'Function' => 'UpdateTo849'),
3021 849 => array('Revision' => 857, 'Function' => 'UpdateTo857'),
3022 857 => array('Revision' => 867, 'Function' => 'UpdateTo867'),
3023 867 => array('Revision' => 872, 'Function' => 'UpdateTo872'),
3024 872 => array('Revision' => 873, 'Function' => 'UpdateTo873'),
3025 873 => array('Revision' => 887, 'Function' => 'UpdateTo887'),
3026 887 => array('Revision' => 892, 'Function' => 'UpdateTo892'),
3027 892 => array('Revision' => 900, 'Function' => 'UpdateTo900'),
3028 );
3029 }
3030}
Note: See TracBrowser for help on using the repository browser.