Ignore:
Timestamp:
Dec 30, 2020, 11:52:07 PM (4 years ago)
Author:
chronos
Message:
  • Added: More modules models installation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/AppModule.php

    r890 r891  
    7373  }
    7474
     75  static function GetModels(): array
     76  {
     77    return array();
     78  }
     79
    7580  function Install(): void
    7681  {
     
    9095    $this->Stop();
    9196    $this->Installed = false;
    92     $List = array();   
     97    $List = array();
    9398    $this->Manager->EnumSuperiorDependenciesCascade($this, $List, array(ModuleCondition::Installed));
    9499    $this->Manager->Perform($List, array(ModuleAction::Uninstall), array(ModuleCondition::Installed));
     
    200205      else if ($Column->Type == ModelColumnType::Boolean) $Query .= 'tinyint(1)';
    201206      else if ($Column->Type == ModelColumnType::Date) $Query .= 'date';
    202       else if ($Column->Type == ModelColumnType::Enum) 
     207      else if ($Column->Type == ModelColumnType::Enum)
    203208      {
    204209        $Query .= 'enum("'.implode('", "', $Column->States).'")';
     
    238243        "ADD CONSTRAINT `".$ModelDesc->Name."_ibfk_".$I."` FOREIGN KEY (`".$Column->Name."`) REFERENCES `".$Column->RefTable."` (`Id`);";
    239244    }
    240     echo($Query);
    241245    $this->Database->query($Query);
    242246  }
Note: See TracChangeset for help on using the changeset viewer.