* when update the company field, ommit the config table.

This commit is contained in:
wangchunsheng
2010-04-08 08:23:44 +00:00
parent d0f6f3618d
commit 65f62c706f

View File

@@ -82,7 +82,7 @@ class upgrade extends control
foreach($userConstants as $key => $value)
{
if(strpos($key, 'TABLE') === false) continue;
if($key == 'TABLE_COMPANY') continue;
if($key == 'TABLE_COMPANY' or $key == 'TABLE_CONFIG') continue;
$this->dao->update($value)->set('company')->eq($this->app->company->id)->exec();
}
}