Skip to content
Snippets Groups Projects
Commit 493f7ac9 authored by Manuel's avatar Manuel
Browse files

Fix module insertion

parent ab9870df
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ class Vtiger_ModuleBasic {
var $basetableid=false;
var $customtable=false;
var $grouptable = false;
var $fieldtable = false;
const EVENT_MODULE_ENABLED = 'module.enabled';
const EVENT_MODULE_DISABLED = 'module.disabled';
......@@ -285,9 +286,12 @@ class Vtiger_ModuleBasic {
if(!$this->customtable)$this->customtable = $this->basetable . "cf";
if(!$this->grouptable)$this->grouptable = $this->basetable."grouprel";
if(!$this->fieldtable)$this->fieldtable = $this->basetable."_user_field";
Vtiger_Utils::CreateTable($this->basetable,"($this->basetableid INT(19) PRIMARY KEY)",true);
Vtiger_Utils::CreateTable($this->customtable,"($this->basetableid INT(19) PRIMARY KEY)", true);
Vtiger_Utils::CreateTable($this->fieldtable,"(recordid INT(25) NOT NULL,userid INT(25) NOT NULL,starred VARCHAR(100) NULL DEFAULT NULL)",true);
if(Vtiger_Version::check('5.0.4', '<=')) {
Vtiger_Utils::CreateTable($this->grouptable, "($this->basetableid INT PRIMARY KEY, groupname varchar(100))",true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment