Changeset 64 for trunk/www/model/realm.php
- Timestamp:
- Aug 5, 2009, 2:44:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/model/realm.php
r63 r64 76 76 'php www/shell.php RealmLock '.$this->Id, 77 77 ); 78 79 // Empty all tables 78 80 if($Delete == true) 79 81 { … … 84 86 )); 85 87 } 88 86 89 // Lookup nearest database with full import 87 90 $DbResult = $this->Database->query('SELECT * FROM `Database` WHERE (`Emulator` <> 0) AND (`Revision` <= '.$this->Data['Database']['Revision'].') AND (`SourceFileName` <> "") ORDER BY `Revision` DESC'); … … 93 96 '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', 94 97 '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; 99 103 $this->Task->Add('Inicializace databáze', $CommandList); 100 104
Note:
See TracChangeset
for help on using the changeset viewer.