Ignore:
Timestamp:
Aug 5, 2009, 2:44:29 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Odkaz na inicializaci čisté databáze.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/model/realm.php

    r63 r64  
    7676      'php www/shell.php RealmLock '.$this->Id,
    7777    );
     78   
     79    // Empty all tables
    7880    if($Delete == true)
    7981    {
     
    8486      ));
    8587    }
     88   
    8689    // Lookup nearest database with full import
    8790    $DbResult = $this->Database->query('SELECT * FROM `Database` WHERE (`Emulator` <> 0) AND (`Revision` <= '.$this->Data['Database']['Revision'].') AND (`SourceFileName` <> "") ORDER BY `Revision` DESC');
     
    9396      'mysql --user=server'.$this->Data['Server'].' --password=server'.$this->Data['Server'].' realm'.$this->Id.'_scriptdev2 < emulator/'.$Database['Emulator'].'/source/src/bindings/ScriptDev2/sql/scriptdev2_script_full.sql',
    9497      'mysql --user=server'.$this->Data['Server'].' --password=server'.$this->Data['Server'].' realm'.$this->Id.'_mangos < emulator/'.$Database['Emulator'].'/source/src/bindings/ScriptDev2/sql/mangos_scriptname_full.sql',
    95       'mysql --user=server'.$this->Data['Server'].' --password=server'.$this->Data['Server'].' realm'.$this->Id.'_characters < emulator/'.$Database['Emulator'].'/share/mangos/sql/characters.sql',
    96       'php www/shell.php RealmDatabaseChange '.$this->Id.' '.$Database['Id'],
    97       'php www/shell.php RealmUnLock '.$this->Id,
    98     ));   
     98      'mysql --user=server'.$this->Data['Server'].' --password=server'.$this->Data['Server'].' realm'.$this->Id.'_characters < emulator/'.$Database['Emulator'].'/share/mangos/sql/characters.sql'));
     99    if($Database['ACIDSourceFileName'] != '')
     100      $CommandList[] = 'mysql --user=server'.$this->Data['Server'].' --password=server'.$this->Data['Server'].' realm'.$this->Id.'_mangos < database/'.$Database['Id'].'/'.$Database['ACIDSourceFileName'];
     101    $CommandList[] = 'php www/shell.php RealmDatabaseChange '.$this->Id.' '.$Database['Id'];
     102    $commandList[] = 'php www/shell.php RealmUnLock '.$this->Id;
    99103    $this->Task->Add('Inicializace databáze', $CommandList);
    100104   
Note: See TracChangeset for help on using the changeset viewer.