One syntax fix, add upgrade routine from .14.000

This commit is contained in:
Miles Lott 2002-08-26 07:51:54 +00:00
parent c1bf33a585
commit 9780932675
2 changed files with 9 additions and 2 deletions

View File

@ -328,7 +328,7 @@
'name' => array('type' => 'text','nullable' => False),
'link_directory' => array('type' => 'text','nullable' => True),
'link_name' => array('type' => 'text','nullable' => True),
'version' => array('type' => 'varchar', 'precision' => 30,'nullable' => False,'default' => '0.0.0.0')
'version' => array('type' => 'varchar', 'precision' => 30,'nullable' => False,'default' => '0.0.0.0'),
'content' => array('type' => 'text','nullable' => False)
),
'pk' => array('file_id'),

View File

@ -32,6 +32,13 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}
$test[] = '0.9.14.000';
function phpgwapi_upgrade0_9_14_000()
{
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.15.001';
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}
$test[] = '0.9.15.001';
function phpgwapi_upgrade0_9_15_001()
{
@ -68,7 +75,7 @@
$db2->query('INSERT INTO phpgw_newprefs (preference_owner,preference_value) VALUES('
. $accountid . ",'"
. $GLOBALS['phpgw_setup']->oProc->f('preference_value') . "')",
. $GLOBALS['phpgw_setup']->oProc->f('preference_value') . "')",
__LINE__,__FILE__);
}