Changeset 888 for trunk/Packages/Common/Update.php
- Timestamp:
- Nov 24, 2020, 10:58:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Update.php
r887 r888 18 18 } 19 19 20 function GetDbVersion() 20 function GetDbVersion(): string 21 21 { 22 22 $DbResult = $this->Database->select($this->VersionTable, '*', 'Id=1'); … … 25 25 } 26 26 27 function IsInstalled() 27 function IsInstalled(): bool 28 28 { 29 29 $DbResult = $this->Database->query('SHOW TABLES LIKE "'.$this->VersionTable.'"'); … … 31 31 } 32 32 33 function IsUpToDate() 33 function IsUpToDate(): bool 34 34 { 35 35 return $this->Revision <= $this->GetDbVersion(); 36 36 } 37 37 38 function Upgrade() 38 function Upgrade(): string 39 39 { 40 40 $DbRevision = $this->GetDbVersion(); … … 58 58 } 59 59 60 function Install() 60 function Install(): void 61 61 { 62 62 $InstallMethod = $this->InstallMethod; … … 64 64 } 65 65 66 function Uninstall() 66 function Uninstall(): void 67 67 { 68 69 68 } 70 69 71 function InsertSampleData() 70 function InsertSampleData(): void 72 71 { 73 72 $InstallMethod = $this->InsertSampleDataMethod;
Note:
See TracChangeset
for help on using the changeset viewer.