Changeset 9 for Common/Setup.php
- Timestamp:
- Apr 7, 2020, 8:50:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/Setup.php
r8 r9 207 207 $Output = ''; 208 208 209 $Pageing = new Paging( );209 $Pageing = new Paging($this->System); 210 210 $Pageing->TotalCount = count($this->System->ModuleManager->Modules); 211 $Table = new VisualTable( );211 $Table = new VisualTable($this->System); 212 212 $Table->SetColumns(array( 213 213 array('Name' => 'Name', 'Title' => 'Jméno'), … … 415 415 PRIMARY KEY (`Id`) 416 416 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 417 $this->Database->query( "INSERT INTO `'.$this->UpdateManager->VersionTable.'` (`Id`, `Revision`) VALUES418 (1, '.$DatabaseRevision.'); ");417 $this->Database->query('INSERT INTO `'.$this->UpdateManager->VersionTable.'` (`Id`, `Revision`) VALUES 418 (1, '.$DatabaseRevision.');'); 419 419 $this->Database->query("CREATE TABLE IF NOT EXISTS `Module` ( 420 420 `Id` int(11) NOT NULL AUTO_INCREMENT, … … 428 428 { 429 429 $this->System->ModuleManager->UninstallAll(); 430 $this->Database->query('DROP TABLE `Module`');431 $this->Database->query('DROP TABLE `'.$this->UpdateManager->VersionTable.'`');430 $this->Database->query('DROP TABLE IF EXISTS `Module`'); 431 $this->Database->query('DROP TABLE IF EXISTS `'.$this->UpdateManager->VersionTable.'`'); 432 432 } 433 433
Note:
See TracChangeset
for help on using the changeset viewer.