[etemplate] - Changed datatype text->longtext on egw_etemplate.et_data

This commit is contained in:
José Luis Gordo Romero 2007-10-21 09:24:31 +00:00
parent 7ab746e386
commit 1e6ce9fd6e
3 changed files with 13 additions and 2 deletions

View File

@ -13,7 +13,7 @@
/* $Id$ */
$setup_info['etemplate']['name'] = 'etemplate';
$setup_info['etemplate']['version'] = '1.4';
$setup_info['etemplate']['version'] = '1.5.001';
$setup_info['etemplate']['app_order'] = 60; // just behind the developers-tools
$setup_info['etemplate']['tables'] = array('egw_etemplate');
$setup_info['etemplate']['enable'] = 1;

View File

@ -20,7 +20,7 @@
'et_lang' => array('type' => 'varchar','precision' => '5','nullable' => False,'default' => ''),
'et_group' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'),
'et_version' => array('type' => 'varchar','precision' => '20','nullable' => False,'default' => ''),
'et_data' => array('type' => 'text','nullable' => True),
'et_data' => array('type' => 'longtext','nullable' => True),
'et_size' => array('type' => 'varchar','precision' => '128','nullable' => True),
'et_style' => array('type' => 'text','nullable' => True),
'et_modified' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0')

View File

@ -106,4 +106,15 @@
return $GLOBALS['setup_info']['etemplate']['currentver'] = '1.4';
}
$test[] = '1.4';
function etemplate_upgrade1_4()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_etemplate','et_data',array(
'type' => 'longtext',
'nullable' => True,
));
return $GLOBALS['setup_info']['etemplate']['currentver'] = '1.5.001';
}
?>