Ignore:
Timestamp:
Sep 3, 2015, 9:25:53 AM (9 years ago)
Author:
chronos
Message:
  • Fixed: Upgrade method.
  • Modified: AppModule Upgrade method improvement.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/AppModule.php

    r738 r743  
    101101  {
    102102    if(!$this->Installed) return;
     103    if($this->InstalledVersion == $this->Version) return;
    103104    $List = array();
    104105    $this->Manager->EnumSuperiorDependenciesCascade($this, $List, array(ModuleCondition::Installed));
     
    175176  protected function DoUninstall()
    176177  {
     178  }
     179
     180  protected function DoUpgrade()
     181  {
     182
    177183  }
    178184}
     
    213219          if($Action == ModuleAction::Enable) $Module->Enable();
    214220          if($Action == ModuleAction::Disable) $Module->Disable();
     221          if($Action == ModuleAction::Upgrade) $Module->Upgrade();
    215222        }
    216223      }
     
    360367  }
    361368}
    362 
Note: See TracChangeset for help on using the changeset viewer.