forked from extern/egroupware
Added new history logging class
This commit is contained in:
parent
2f03e0d9c1
commit
cb8ffc5a47
@ -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';
|
||||
|
@ -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()
|
||||
)
|
||||
|
||||
);
|
||||
?>
|
||||
?>
|
@ -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'];
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user