add deleted column, to match nathans backport

This commit is contained in:
Klaus Leithoff 2013-01-11 10:21:33 +00:00
parent 0e46ac5353
commit 2e44b80d07
3 changed files with 14 additions and 2 deletions

View File

@ -13,7 +13,7 @@
$setup_info['resources']['name'] = 'resources'; $setup_info['resources']['name'] = 'resources';
$setup_info['resources']['title'] = 'Resources'; $setup_info['resources']['title'] = 'Resources';
$setup_info['resources']['version'] = '1.9.001'; $setup_info['resources']['version'] = '1.9.002';
$setup_info['resources']['app_order'] = 5; $setup_info['resources']['app_order'] = 5;
$setup_info['resources']['tables'] = array('egw_resources','egw_resources_extra'); $setup_info['resources']['tables'] = array('egw_resources','egw_resources_extra');
$setup_info['resources']['enable'] = 1; $setup_info['resources']['enable'] = 1;

View File

@ -28,7 +28,8 @@ $phpgw_baseline = array(
'picture_src' => array('type' => 'varchar','precision' => '20'), 'picture_src' => array('type' => 'varchar','precision' => '20'),
'accessory_of' => array('type' => 'int','precision' => '11','default' => '-1'), 'accessory_of' => array('type' => 'int','precision' => '11','default' => '-1'),
'storage_info' => array('type' => 'varchar','precision' => '200'), 'storage_info' => array('type' => 'varchar','precision' => '200'),
'inventory_number' => array('type' => 'varchar','precision' => '20') 'inventory_number' => array('type' => 'varchar','precision' => '20'),
'deleted' => array('type' => 'int','precision' => '8')
), ),
'pk' => array('res_id'), 'pk' => array('res_id'),
'fk' => array(), 'fk' => array(),

View File

@ -335,3 +335,14 @@ function resources_upgrade1_8()
return $GLOBALS['setup_info']['resources']['currentver'] = '1.9.001'; return $GLOBALS['setup_info']['resources']['currentver'] = '1.9.001';
} }
function resources_upgrade1_9_001()
{
$GLOBALS['egw_setup']->oProc->AddColumn('egw_resources','deleted',array(
'type' => 'int',
'precision' => '8'
));
return $GLOBALS['setup_info']['resources']['currentver'] = '1.9.002';
}