Ignore:
Timestamp:
Nov 2, 2013, 11:23:19 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Vylepšena instalace modulu User.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Setup/Setup.php

    r593 r594  
    404404    $this->Database->query("INSERT INTO `SystemVersion` (`Id`, `Revision`) VALUES
    405405      (1, 591);");
     406    $this->Database->query("CREATE TABLE IF NOT EXISTS `Module` (
     407  `Id` int(11) NOT NULL AUTO_INCREMENT,
     408  `Name` varchar(255) NOT NULL,
     409  `Title` varchar(255) NOT NULL,
     410  PRIMARY KEY (`Id`)
     411) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;");
    406412  }
    407413 
    408414  function Uninstall()
    409415  {
     416    $this->System->ModuleManager->UninstallAll();
     417    $this->Database->query('DROP TABLE `Module`');
    410418    $this->Database->query('DROP TABLE `SystemVersion`');
    411419  }
     
    419427  function Upgrade()
    420428  {
    421     $Output = $this->ModuleManager->Update();
     429    $Output = $this->UpdateManager->Upgrade();
    422430    return($Output);
    423431  }
Note: See TracChangeset for help on using the changeset viewer.