fix: to short column definition for remark field in link class

This commit is contained in:
Cornelius Weiß 2006-06-28 12:34:51 +00:00
parent b849696eb2
commit 4910d3d599
3 changed files with 18 additions and 3 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
$setup_info['phpgwapi']['version'] = '1.3.009';
$setup_info['phpgwapi']['version'] = '1.3.010';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -52,6 +52,8 @@
$setup_info['phpgwapi']['tables'][] = 'egw_syncmldevinfo';
$setup_info['phpgwapi']['tables'][] = 'egw_syncmlsummary';
$setup_info['phpgwapi']['tables'][] = 'egw_links';
$setup_info['phpgwapi']['tables'][] = 'egw_addressbook';
$setup_info['phpgwapi']['tables'][] = 'egw_addressbook_extra';
/* Basic information about this app */
$setup_info['notifywindow']['name'] = 'notifywindow';
@ -67,3 +69,4 @@

View File

@ -480,7 +480,7 @@
'link_id1' => array('type' => 'varchar','precision' => '50','nullable' => False),
'link_app2' => array('type' => 'varchar','precision' => '25','nullable' => False),
'link_id2' => array('type' => 'varchar','precision' => '50','nullable' => False),
'link_remark' => array('type' => 'varchar','precision' => '50'),
'link_remark' => array('type' => 'varchar','precision' => '100'),
'link_lastmod' => array('type' => 'int','precision' => '4','nullable' => False),
'link_owner' => array('type' => 'int','precision' => '4','nullable' => False)
),
@ -567,5 +567,5 @@
'fk' => array(),
'ix' => array(),
'uc' => array()
),
)
);

View File

@ -562,3 +562,15 @@
}
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.009';
}
$test[] = '1.3.009';
function phpgwapi_upgrade1_3_009()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_links','link_remark',array(
'type' => 'varchar',
'precision' => '100'
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.010';
}
?>