Ignore:
Timestamp:
Jun 11, 2012, 10:08:38 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Instalace a odinstalace základních modulů v opačném pořadí.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Common/Model.php

    r401 r403  
    4141    $this->AddPropertyOneToMany('ItemOwnerModule', 'SystemModule', true);
    4242    $this->AddPropertyDateTime('ItemTimeCreate', true);
    43     $this->AddPropertyOneToMany('ItemUserCreate', 'User', true);
     43    //$this->AddPropertyOneToMany('ItemUserCreate', 'User', true);
    4444    $this->AddPropertyDateTime('ItemTimeModify', true);
    45     $this->AddPropertyOneToMany('ItemUserModify', 'User', true);   
     45    //$this->AddPropertyOneToMany('ItemUserModify', 'User', true);   
    4646  }
    4747 
     
    169169  function Install()
    170170  {
     171    DebugLog('Installing model '.$this->Name.'...');
    171172    if($this->Installed) return;
    172173    $this->Installed = true;
     
    243244  function UnInstall()
    244245  {
     246    DebugLog('Uninstalling model '.$this->Name.'...');
    245247    foreach($this->Properties as $Property)
    246248    {
     
    251253        $this->Database->query('ALTER TABLE `'.$this->Name.'` DROP FOREIGN KEY `'.
    252254          $this->Name.'_ibfk_'.$Property['Name'].'`');
    253       echo('ss');
    254255      }
    255256    }
    256     //$this->Database->query('DROP TABLE IF EXISTS `'.$this->Name.'`');
     257    $this->Database->query('DROP TABLE IF EXISTS `'.$this->Name.'`');
    257258    $this->Installed = false;
    258259  }
Note: See TracChangeset for help on using the changeset viewer.