Changeset 387


Ignore:
Timestamp:
Mar 14, 2010, 6:06:24 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Odřátkování samotného SQL příkazu nepřevádět na \n u exportu do SQL.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r386 r387  
    114114            $Where = substr($Where, 0, -7).')';
    115115          } else $Where = '`'.$Group['MangosTableIndex'].'`';
    116           $Where .= ' = "'.$Line[$Group['PrimaryKeyItem']].'";'."\n";
     116          $Where .= ' = "'.$Line[$Group['PrimaryKeyItem']].'";';
    117117          $Line = 'UPDATE `'.$Group['MangosTable'].'` SET '.$Values.' WHERE '.$Where;
    118118          $Line = str_replace("\n", '\n', $Line);
    119119          $Line = str_replace("\r", '', $Line);
    120           $Buffer .= $Line;
     120          $Buffer .= $Line."\n";
    121121        }     
    122122      }
  • trunk/sql/updates/385.sql

    r385 r387  
    11UPDATE  `Group` SET  `MangosTableIndex` =  'menu_id,id' WHERE  `Group`.`Id` =16;
     2UPDATE `Group` SET `PrimaryKeyItem` = 'Index' WHERE `Group`.`Id` =16;
    23ALTER TABLE  `TextNPCOption` ADD  `Index` VARCHAR( 255 ) NOT NULL AFTER  `Take`;
    34
    45INSERT INTO `GroupItem` (`Id`, `Group`, `Name`, `Column`, `Visible`, `MangosColumn`, `AddonFileName`, `DBCColumnIndex`) VALUES (66, 16, 'Index', 'Index', 0, '', '', 0);
    56
    6 INSERT INTO  `wowpreklad`.`ExportVersion` (
     7INSERT INTO  `ExportVersion` (
    78`Id` ,
    89`ExportType` ,
     
    1213NULL ,  '1',  '75'
    1314);
    14 INSERT INTO  `wowpreklad`.`ExportVersion` (
     15INSERT INTO `ExportVersion` (
    1516`Id` ,
    1617`ExportType` ,
     
    2021NULL ,  '2',  '75'
    2122);
     23
     24UPDATE `Group` SET `MangosTable` = 'creature_ai_texts' WHERE `Group`.`Id` =11;
Note: See TracChangeset for help on using the changeset viewer.