Changeset 55 for trunk/Packages/Common/Update.php
- Timestamp:
 - Apr 7, 2020, 12:55:39 AM (6 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/Packages/Common/Update.php (modified) (5 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/Packages/Common/Update.php
r37 r55 23 23 $DbResult = $this->Database->select($this->VersionTable, '*', 'Id=1'); 24 24 $Version = $DbResult->fetch_assoc(); 25 return ($Version['Revision']);25 return $Version['Revision']; 26 26 } 27 27 … … 29 29 { 30 30 $DbResult = $this->Database->query('SHOW TABLES LIKE "'.$this->VersionTable.'"'); 31 return ($DbResult->num_rows > 0);31 return $DbResult->num_rows > 0; 32 32 } 33 33 34 34 function IsUpToDate() 35 35 { 36 return ($this->Revision <= $this->GetDbVersion());36 return $this->Revision <= $this->GetDbVersion(); 37 37 } 38 38 … … 41 41 $DbRevision = $this->GetDbVersion(); 42 42 $Output = 'Počáteční revize databáze: '.$DbRevision.'<br/>'; 43 while ($this->Revision > $DbRevision)43 while ($this->Revision > $DbRevision) 44 44 { 45 45 $TraceItem = $this->Trace[$DbRevision]; … … 54 54 $TraceItem['Revision'].' WHERE `Id`=1'); 55 55 } 56 return ($Output);56 return $Output; 57 57 } 58 58 … … 79 79 echo($Query.';<br/>'); 80 80 flush(); 81 return ($this->Database->query($Query));81 return $this->Database->query($Query); 82 82 } 83 83 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/tanec/chrome/site/your_project_logo.png)