Ignore:
Timestamp:
Apr 8, 2010, 8:31:45 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Ukládání nových textů do databáze nebylo převedeno na databázový lomítková řetězec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sql/updates/426.sql

    r426 r429  
    133133ALTER TABLE `TextQuest` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    134134ALTER TABLE `TextQuest` ADD  `ModifyTime` DATETIME NOT NULL;
    135 ALTER TABLE `TextQuest` INDEX (  `ModifyTime` );
     135ALTER TABLE `TextQuest` ADD INDEX (  `ModifyTime` );
    136136UPDATE `TextQuest` SET `ModifyTime` = NOW();
    137137UPDATE `TextQuest` SET `CompleteParts` = 1023 WHERE `Complete`=1;
    138138ALTER TABLE `TextPage` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    139139ALTER TABLE `TextPage` ADD  `ModifyTime` DATETIME NOT NULL;
    140 ALTER TABLE `TextPage` INDEX (  `ModifyTime` );
     140ALTER TABLE `TextPage` ADD INDEX (  `ModifyTime` );
    141141UPDATE `TextPage` SET `ModifyTime` = NOW();
    142142UPDATE `TextPage` SET `CompleteParts` = 1 WHERE `Complete`=1;
    143143ALTER TABLE `TextNPC` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    144144ALTER TABLE `TextNPC` ADD  `ModifyTime` DATETIME NOT NULL;
    145 ALTER TABLE `TextNPC` INDEX (  `ModifyTime` );
     145ALTER TABLE `TextNPC` ADD INDEX (  `ModifyTime` );
    146146UPDATE `TextNPC` SET `ModifyTime` = NOW();
    147147UPDATE `TextNPC` SET `CompleteParts` = 65535 WHERE `Complete`=1;
    148148ALTER TABLE `TextItem` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    149149ALTER TABLE `TextItem` ADD  `ModifyTime` DATETIME NOT NULL;
    150 ALTER TABLE `TextItem` INDEX (  `ModifyTime` );
     150ALTER TABLE `TextItem` ADD INDEX (  `ModifyTime` );
    151151UPDATE `TextItem` SET `ModifyTime` = NOW();
    152152UPDATE `TextItem` SET `CompleteParts` = 3 WHERE `Complete`=1;
    153153ALTER TABLE `TextGameObject` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    154154ALTER TABLE `TextGameObject` ADD  `ModifyTime` DATETIME NOT NULL;
    155 ALTER TABLE `TextGameObject` INDEX (  `ModifyTime` );
     155ALTER TABLE `TextGameObject` ADD INDEX (  `ModifyTime` );
    156156UPDATE `TextGameObject` SET `ModifyTime` = NOW();
    157157UPDATE `TextGameObject` SET `CompleteParts` = 3 WHERE `Complete`=1;
    158158ALTER TABLE `TextCreature` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    159159ALTER TABLE `TextCreature` ADD  `ModifyTime` DATETIME NOT NULL;
    160 ALTER TABLE `TextCreature` INDEX (  `ModifyTime` );
     160ALTER TABLE `TextCreature` ADD INDEX (  `ModifyTime` );
    161161UPDATE `TextCreature` SET `ModifyTime` = NOW();
    162162UPDATE `TextCreature` SET `CompleteParts` = 3 WHERE `Complete`=1;
    163163ALTER TABLE `TextMangosString` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    164164ALTER TABLE `TextMangosString` ADD  `ModifyTime` DATETIME NOT NULL;
    165 ALTER TABLE `TextMangosString` INDEX (  `ModifyTime` );
     165ALTER TABLE `TextMangosString` ADD INDEX (  `ModifyTime` );
    166166UPDATE `TextMangosString` SET `ModifyTime` = NOW();
    167167UPDATE `TextMangosString` SET `CompleteParts` = 1 WHERE `Complete`=1;
    168168ALTER TABLE `TextMangosCommand` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    169169ALTER TABLE `TextMangosCommand` ADD  `ModifyTime` DATETIME NOT NULL;
    170 ALTER TABLE `TextMangosCommand` INDEX (  `ModifyTime` );
     170ALTER TABLE `TextMangosCommand` ADD INDEX (  `ModifyTime` );
    171171UPDATE `TextMangosCommand` SET `ModifyTime` = NOW();
    172172UPDATE `TextMangosCommand` SET `CompleteParts` = 3 WHERE `Complete`=1;
    173173ALTER TABLE `TextSD2Script` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    174174ALTER TABLE `TextSD2Script` ADD  `ModifyTime` DATETIME NOT NULL;
    175 ALTER TABLE `TextSD2Script` INDEX (  `ModifyTime` );
     175ALTER TABLE `TextSD2Script` ADD INDEX (  `ModifyTime` );
    176176UPDATE `TextSD2Script` SET `ModifyTime` = NOW();
    177177UPDATE `TextSD2Script` SET `CompleteParts` = 3 WHERE `Complete`=1;
    178178ALTER TABLE `TextSD2EventAI` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    179179ALTER TABLE `TextSD2EventAI` ADD  `ModifyTime` DATETIME NOT NULL;
    180 ALTER TABLE `TextSD2EventAI` INDEX (  `ModifyTime` );
     180ALTER TABLE `TextSD2EventAI` ADD INDEX (  `ModifyTime` );
    181181UPDATE `TextSD2EventAI` SET `ModifyTime` = NOW();
    182182UPDATE `TextSD2EventAI` SET `CompleteParts` = 3 WHERE `Complete`=1;
    183183ALTER TABLE `TextGameTip` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    184184ALTER TABLE `TextGameTip` ADD  `ModifyTime` DATETIME NOT NULL;
    185 ALTER TABLE `TextGameTip` INDEX (  `ModifyTime` );
     185ALTER TABLE `TextGameTip` ADD INDEX (  `ModifyTime` );
    186186UPDATE `TextGameTip` SET `ModifyTime` = NOW();
    187187UPDATE `TextGameTip` SET `CompleteParts` = 1 WHERE `Complete`=1;
    188188ALTER TABLE `TextSpell` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    189189ALTER TABLE `TextSpell` ADD  `ModifyTime` DATETIME NOT NULL;
    190 ALTER TABLE `TextSpell` INDEX (  `ModifyTime` );
     190ALTER TABLE `TextSpell` ADD INDEX (  `ModifyTime` );
    191191UPDATE `TextSpell` SET `ModifyTime` = NOW();
    192192UPDATE `TextSpell` SET `CompleteParts` = 15 WHERE `Complete`=1;
    193193ALTER TABLE `TextGlobalString` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    194194ALTER TABLE `TextGlobalString` ADD  `ModifyTime` DATETIME NOT NULL;
    195 ALTER TABLE `TextGlobalString` INDEX (  `ModifyTime` );
     195ALTER TABLE `TextGlobalString` ADD INDEX (  `ModifyTime` );
    196196UPDATE `TextGlobalString` SET `ModifyTime` = NOW();
    197197UPDATE `TextGlobalString` SET `CompleteParts` = 7 WHERE `Complete`=1;
    198198ALTER TABLE `TextGlueString` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    199199ALTER TABLE `TextGlueString` ADD  `ModifyTime` DATETIME NOT NULL;
    200 ALTER TABLE `TextGlueString` INDEX (  `ModifyTime` );
     200ALTER TABLE `TextGlueString` ADD INDEX (  `ModifyTime` );
    201201UPDATE `TextGlueString` SET `ModifyTime` = NOW();
    202202UPDATE `TextGlueString` SET `CompleteParts` = 7 WHERE `Complete`=1;
    203203ALTER TABLE `TextNPCOption` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    204204ALTER TABLE `TextNPCOption` ADD  `ModifyTime` DATETIME NOT NULL;
    205 ALTER TABLE `TextNPCOption` INDEX (  `ModifyTime` );
     205ALTER TABLE `TextNPCOption` ADD INDEX (  `ModifyTime` );
    206206UPDATE `TextNPCOption` SET `ModifyTime` = NOW();
    207207UPDATE `TextNPCOption` SET `CompleteParts` = 3 WHERE `Complete`=1;
    208208ALTER TABLE `TextTransport` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    209209ALTER TABLE `TextTransport` ADD  `ModifyTime` DATETIME NOT NULL;
    210 ALTER TABLE `TextTransport` INDEX (  `ModifyTime` );
     210ALTER TABLE `TextTransport` ADD INDEX (  `ModifyTime` );
    211211UPDATE `TextTransport` SET `ModifyTime` = NOW();
    212212UPDATE `TextTransport` SET `CompleteParts` = 1 WHERE `Complete`=1;
    213213ALTER TABLE `TextAreaTriggerTavern` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    214214ALTER TABLE `TextAreaTriggerTavern` ADD  `ModifyTime` DATETIME NOT NULL;
    215 ALTER TABLE `TextAreaTriggerTavern` INDEX (  `ModifyTime` );
     215ALTER TABLE `TextAreaTriggerTavern` ADD INDEX (  `ModifyTime` );
    216216UPDATE `TextAreaTriggerTavern` SET `ModifyTime` = NOW();
    217217UPDATE `TextAreaTriggerTavern` SET `CompleteParts` = 1 WHERE `Complete`=1;
    218218ALTER TABLE `TextAreaTriggerTeleport` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    219219ALTER TABLE `TextAreaTriggerTeleport` ADD  `ModifyTime` DATETIME NOT NULL;
    220 ALTER TABLE `TextAreaTriggerTeleport` INDEX (  `ModifyTime` );
     220ALTER TABLE `TextAreaTriggerTeleport` ADD INDEX (  `ModifyTime` );
    221221UPDATE `TextAreaTriggerTeleport` SET `ModifyTime` = NOW();
    222222UPDATE `TextAreaTriggerTeleport` SET `CompleteParts` = 1 WHERE `Complete`=1;
    223223ALTER TABLE `TextAchievement` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    224224ALTER TABLE `TextAchievement` ADD  `ModifyTime` DATETIME NOT NULL;
    225 ALTER TABLE `TextAchievement` INDEX (  `ModifyTime` );
     225ALTER TABLE `TextAchievement` ADD INDEX (  `ModifyTime` );
    226226UPDATE `TextAchievement` SET `ModifyTime` = NOW();
    227227UPDATE `TextAchievement` SET `CompleteParts` = 7 WHERE `Complete`=1;
    228228ALTER TABLE `TextAchievementCategory` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    229229ALTER TABLE `TextAchievementCategory` ADD  `ModifyTime` DATETIME NOT NULL;
    230 ALTER TABLE `TextAchievementCategory` INDEX (  `ModifyTime` );
     230ALTER TABLE `TextAchievementCategory` ADD INDEX (  `ModifyTime` );
    231231UPDATE `TextAchievementCategory` SET `ModifyTime` = NOW();
    232232UPDATE `TextAchievementCategory` SET `CompleteParts` = 1 WHERE `Complete`=1;
    233233ALTER TABLE `TextAchievementCriteria` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    234234ALTER TABLE `TextAchievementCriteria` ADD  `ModifyTime` DATETIME NOT NULL;
    235 ALTER TABLE `TextAchievementCriteria` INDEX (  `ModifyTime` );
     235ALTER TABLE `TextAchievementCriteria` ADD INDEX (  `ModifyTime` );
    236236UPDATE `TextAchievementCriteria` SET `ModifyTime` = NOW();
    237237UPDATE `TextAchievementCriteria` SET `CompleteParts` = 1 WHERE `Complete`=1;
    238238ALTER TABLE `TextGlueLocalization` ADD  `CompleteParts` INT NOT NULL AFTER  `Complete`;
    239239ALTER TABLE `TextGlueLocalization` ADD  `ModifyTime` DATETIME NOT NULL;
    240 ALTER TABLE `TextGlueLocalization` INDEX (  `ModifyTime` );
     240ALTER TABLE `TextGlueLocalization` ADD INDEX (  `ModifyTime` );
    241241UPDATE `TextGlueLocalization` SET `ModifyTime` = NOW();
    242242UPDATE `TextGlueLocalization` SET `CompleteParts` = 7 WHERE `Complete`=1;
     243
    243244CREATE TABLE IF NOT EXISTS `DbVersion` (
    244245  `Id` int(11) NOT NULL AUTO_INCREMENT,
Note: See TracChangeset for help on using the changeset viewer.