Changeset 619 for trunk/Common
- Timestamp:
- Dec 26, 2013, 7:37:44 PM (11 years ago)
- Location:
- trunk/Common/Setup
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Setup.php
r613 r619 97 97 { 98 98 $Output .= '<h3>Povýšení</h3>'; 99 $Output .= $this->System->Setup->Upgrade(); 100 $Output .= $this->ControlPanel(); 99 try { 100 $Output .= $this->System->Setup->Upgrade(); 101 } catch (Exception $E) { 102 $Output .= $this->SystemMessage('Chyba aktualizace', 'Došlo k chybě v SQL dotazu při aktualizaci: <br/>'.$E->getMessage()); 103 } 104 $Output .= $this->ControlPanel(); 101 105 } else 102 106 if($Action == 'install') -
trunk/Common/Setup/Update.php
r612 r619 49 49 echo($Output); 50 50 $Output = ''; 51 $RevUpdate = $TraceItem['Function']; 52 53 51 $RevUpdate = $TraceItem['Function']; 52 $RevUpdate($this); 53 $DbRevision = $TraceItem['Revision']; 54 54 $this->Database->query('UPDATE `'.$this->VersionTable.'` SET `Revision`= '.$TraceItem['Revision'].' WHERE `Id`=1'); 55 55 } -
trunk/Common/Setup/Updates.php
r615 r619 523 523 } 524 524 525 function UpdateTo619($Manager) 526 { 527 $Manager->Execute('ALTER TABLE `UserOnline` ADD `StayLogged` INT NOT NULL ;'); 528 } 529 525 530 class Updates 526 531 { … … 554 559 597 => array('Revision' => 601, 'Function' => 'UpdateTo601'), 555 560 601 => array('Revision' => 615, 'Function' => 'UpdateTo615'), 561 615 => array('Revision' => 619, 'Function' => 'UpdateTo619'), 556 562 )); 557 563 }
Note:
See TracChangeset
for help on using the changeset viewer.