diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 11ce49453d..f6b266b935 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -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; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 766e9181df..70c10c7606 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -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(), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index a208db3d12..f1065265f8 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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']; + } ?>