diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index c6ceb29e36..5bcfcb9fc3 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -14,31 +14,32 @@ /* Basic information about this app */ $setup_info['phpgwapi']['name'] = 'phpgwapi'; $setup_info['phpgwapi']['title'] = 'phpgwapi'; - $setup_info['phpgwapi']['version'] = '0.9.13.013'; + $setup_info['phpgwapi']['version'] = '0.9.13.014'; $setup_info['phpgwapi']['versions']['current_header'] = '1.18'; $setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; /* The tables this app creates */ - $setup_info['phpgwapi']['tables'][] = 'phpgw_sessions'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_preferences'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_acl'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_hooks'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_config'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_categories'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_applications'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_app_sessions'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_accounts'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_access_log'; - $setup_info['phpgwapi']['tables'][] = 'lang'; - $setup_info['phpgwapi']['tables'][] = 'languages'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_nextid'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_addressbook'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_addressbook_extra'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_log'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_log_msg'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_interserv'; - $setup_info['phpgwapi']['tables'][] = 'phpgw_vfs'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_sessions'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_preferences'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_acl'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_hooks'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_config'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_categories'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_applications'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_app_sessions'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_accounts'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_access_log'; + $setup_info['phpgwapi']['tables'][] = 'lang'; + $setup_info['phpgwapi']['tables'][] = 'languages'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_nextid'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_addressbook'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_addressbook_extra'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_history_log'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_log'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_log_msg'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_interserv'; + $setup_info['phpgwapi']['tables'][] = 'phpgw_vfs'; /* Basic information about this app */ $setup_info['notifywindow']['name'] = 'notifywindow'; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 1ff7cb4cd0..e2f140078d 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -333,6 +333,22 @@ 'fk' => array(), 'ix' => array(), 'uc' => array() + ), + 'phpgw_history_log', array( + 'fd' => array( + 'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False), + 'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False), + 'history_appname' => array('type' => 'varchar', 'precision' => 64, 'nullable' => False), + 'history_owner' => array('type' => 'int', 'precision' => 4, 'nullable' => False), + 'history_status' => array('type' => 'char', 'precision' => 2, 'nullable' => False), + 'history_new_value' => array('type' => 'text', 'nullable' => False), + 'history_timestamp' => array('type' => 'timestamp', 'nullable' => False, 'default' => 'current_timestamp') + ), + 'pk' => array('history_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() ) + ); -?> +?> \ No newline at end of file diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 51abc8dc74..71def6d6fe 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -2134,4 +2134,31 @@ $setup_info['phpgwapi']['currentver'] = '0.9.13.013'; return $setup_info['phpgwapi']['currentver']; } -?> + + $test[] = '0.9.13.013'; + function phpgwapi_upgrade0_9_13_013() + { + $GLOBALS['phpgw_setup']->oProc->CreateTable( + 'phpgw_history_log', array( + 'fd' => array( + 'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False), + 'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False), + 'history_appname' => array('type' => 'varchar', 'precision' => 64, 'nullable' => False), + 'history_owner' => array('type' => 'int', 'precision' => 4, 'nullable' => False), + 'history_status' => array('type' => 'char', 'precision' => 2, 'nullable' => False), + 'history_new_value' => array('type' => 'text', 'nullable' => False), + 'history_timestamp' => array('type' => 'timestamp', 'nullable' => False, 'default' => 'current_timestamp') + + ), + 'pk' => array('history_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ) + ); + + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.014'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } + +?> \ No newline at end of file