update categories plus addressbook table to add column last_mod

This commit is contained in:
ceb 2003-05-01 23:22:57 +00:00
parent 52ff07f6c9
commit a28174ef68
3 changed files with 39 additions and 3 deletions

View File

@ -13,7 +13,7 @@
/* Basic information about this app */ /* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi'; $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']['versions']['current_header'] = '1.23';
$setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1; $setup_info['phpgwapi']['app_order'] = 1;

View File

@ -180,7 +180,8 @@
'cat_appname' => array('type' => 'varchar', 'precision' => 50, 'nullable' => false), 'cat_appname' => array('type' => 'varchar', 'precision' => 50, 'nullable' => false),
'cat_name' => array('type' => 'varchar', 'precision' => 150, 'nullable' => false), 'cat_name' => array('type' => 'varchar', 'precision' => 150, 'nullable' => false),
'cat_description' => array('type' => 'varchar', 'precision' => 255, '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'), 'pk' => array('cat_id'),
'fk' => array(), 'fk' => array(),
@ -240,7 +241,8 @@
'email' => array('type' => 'varchar', 'precision' => 64,'nullable' => True), 'email' => array('type' => 'varchar', 'precision' => 64,'nullable' => True),
'email_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET'), 'email_type' => array('type' => 'varchar', 'precision' => 32,'nullable' => False,'default' => 'INTERNET'),
'email_home' => array('type' => 'varchar', 'precision' => 64,'nullable' => True), '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'), 'pk' => array('id'),
'fk' => array(), 'fk' => array(),

View File

@ -123,6 +123,22 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver']; 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'; $test[] = '0.9.15.001';
function phpgwapi_upgrade0_9_15_001() function phpgwapi_upgrade0_9_15_001()
{ {
@ -348,4 +364,22 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver']; 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'];
}
?> ?>