Changeset 891 for trunk/Packages/Common/AppModule.php
- Timestamp:
- Dec 30, 2020, 11:52:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/AppModule.php
r890 r891 73 73 } 74 74 75 static function GetModels(): array 76 { 77 return array(); 78 } 79 75 80 function Install(): void 76 81 { … … 90 95 $this->Stop(); 91 96 $this->Installed = false; 92 $List = array(); 97 $List = array(); 93 98 $this->Manager->EnumSuperiorDependenciesCascade($this, $List, array(ModuleCondition::Installed)); 94 99 $this->Manager->Perform($List, array(ModuleAction::Uninstall), array(ModuleCondition::Installed)); … … 200 205 else if ($Column->Type == ModelColumnType::Boolean) $Query .= 'tinyint(1)'; 201 206 else if ($Column->Type == ModelColumnType::Date) $Query .= 'date'; 202 else if ($Column->Type == ModelColumnType::Enum) 207 else if ($Column->Type == ModelColumnType::Enum) 203 208 { 204 209 $Query .= 'enum("'.implode('", "', $Column->States).'")'; … … 238 243 "ADD CONSTRAINT `".$ModelDesc->Name."_ibfk_".$I."` FOREIGN KEY (`".$Column->Name."`) REFERENCES `".$Column->RefTable."` (`Id`);"; 239 244 } 240 echo($Query);241 245 $this->Database->query($Query); 242 246 }
Note:
See TracChangeset
for help on using the changeset viewer.