From 1e6ce9fd6eba4c207bb0b544656b26d9d66de7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gordo=20Romero?= Date: Sun, 21 Oct 2007 09:24:31 +0000 Subject: [PATCH] [etemplate] - Changed datatype text->longtext on egw_etemplate.et_data --- etemplate/setup/setup.inc.php | 2 +- etemplate/setup/tables_current.inc.php | 2 +- etemplate/setup/tables_update.inc.php | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/etemplate/setup/setup.inc.php b/etemplate/setup/setup.inc.php index f6900b1b1e..628c031d99 100644 --- a/etemplate/setup/setup.inc.php +++ b/etemplate/setup/setup.inc.php @@ -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; diff --git a/etemplate/setup/tables_current.inc.php b/etemplate/setup/tables_current.inc.php index 9872e347df..33ae69faa8 100644 --- a/etemplate/setup/tables_current.inc.php +++ b/etemplate/setup/tables_current.inc.php @@ -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') diff --git a/etemplate/setup/tables_update.inc.php b/etemplate/setup/tables_update.inc.php index 2f5e13a4f0..7b381ff0fd 100644 --- a/etemplate/setup/tables_update.inc.php +++ b/etemplate/setup/tables_update.inc.php @@ -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'; + } ?>