mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
update categories plus addressbook table to add column last_mod
This commit is contained in:
parent
52ff07f6c9
commit
a28174ef68
@ -13,7 +13,7 @@
|
||||
|
||||
/* Basic information about this app */
|
||||
$setup_info['phpgwapi']['name'] = 'phpgwapi';
|
||||
$setup_info['phpgwapi']['version'] = '0.9.15.011';
|
||||
$setup_info['phpgwapi']['version'] = '0.9.15.012';
|
||||
$setup_info['phpgwapi']['versions']['current_header'] = '1.23';
|
||||
$setup_info['phpgwapi']['enable'] = 3;
|
||||
$setup_info['phpgwapi']['app_order'] = 1;
|
||||
|
@ -180,7 +180,8 @@
|
||||
'cat_appname' => array('type' => 'varchar', 'precision' => 50, 'nullable' => false),
|
||||
'cat_name' => array('type' => 'varchar', 'precision' => 150, 'nullable' => false),
|
||||
'cat_description' => array('type' => 'varchar', 'precision' => 255, 'nullable' => false),
|
||||
'cat_data' => array('type' => 'text')
|
||||
'cat_data' => array('type' => 'text'),
|
||||
'last_mod' => array('type' => 'int','precision' => '4','nullable' => False)
|
||||
),
|
||||
'pk' => array('cat_id'),
|
||||
'fk' => array(),
|
||||
@ -240,7 +241,8 @@
|
||||
'email' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'email_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET'),
|
||||
'email_home' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
|
||||
'email_home_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET')
|
||||
'email_home_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET'),
|
||||
'last_mod' => array('type' => 'int','precision' => '4','nullable' => False)
|
||||
),
|
||||
'pk' => array('id'),
|
||||
'fk' => array(),
|
||||
|
@ -123,6 +123,22 @@
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||
}
|
||||
|
||||
$test[] = '0.9.14.504';
|
||||
function phpgwapi_upgrade0_9_14_504()
|
||||
{
|
||||
// 0.9.15.001-12 are already included in 0.9.14.504
|
||||
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.15.012';
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||
}
|
||||
|
||||
$test[] = '0.9.14.505';
|
||||
function phpgwapi_upgrade0_9_14_505()
|
||||
{
|
||||
// 0.9.15.001-12 are already included in 0.9.14.505
|
||||
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.15.012';
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||
}
|
||||
|
||||
$test[] = '0.9.15.001';
|
||||
function phpgwapi_upgrade0_9_15_001()
|
||||
{
|
||||
@ -348,4 +364,22 @@
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||
}
|
||||
|
||||
$test[] = '0.9.15.011';
|
||||
function phpgwapi_upgrade0_9_15_011()
|
||||
{
|
||||
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_addressbook','last_mod',array(
|
||||
'type' => 'int',
|
||||
'precision' => '4',
|
||||
'nullable' => False
|
||||
));
|
||||
|
||||
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_categories','last_mod',array(
|
||||
'type' => 'int',
|
||||
'precision' => '4',
|
||||
'nullable' => False
|
||||
));
|
||||
|
||||
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.15.012';
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user