From 96c5f58a49d9441e712f20a3cc6781ebf414c22c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 3 Aug 2009 11:42:24 +0000 Subject: [PATCH] extend fs_mime (mime type) to varchar(96) to fit application/vnd.openxmlformats-officedocument.wordprocessingml.document (msword xml format) --- phpgwapi/setup/setup.inc.php | 3 ++- phpgwapi/setup/tables_current.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 9cd05e6aef..1717902c17 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -12,7 +12,7 @@ /* Basic information about this app */ $setup_info['phpgwapi']['name'] = 'phpgwapi'; $setup_info['phpgwapi']['title'] = 'eGroupWare API'; -$setup_info['phpgwapi']['version'] = '1.7.002'; +$setup_info['phpgwapi']['version'] = '1.7.003'; $setup_info['phpgwapi']['versions']['current_header'] = '1.29'; $setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; @@ -76,3 +76,4 @@ $setup_info['groupdav']['author'] = $setup_info['groupdav']['maintainer'] = arra ); $setup_info['groupdav']['license'] = 'GPL'; + diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 9c321188d7..31f37baaad 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -441,7 +441,7 @@ $phpgw_baseline = array( 'fs_gid' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), 'fs_created' => array('type' => 'timestamp','precision' => '8','nullable' => False), 'fs_modified' => array('type' => 'timestamp','precision' => '8','nullable' => False), - 'fs_mime' => array('type' => 'varchar','precision' => '64','nullable' => False), + 'fs_mime' => array('type' => 'varchar','precision' => '96','nullable' => False), 'fs_size' => array('type' => 'int','precision' => '8','nullable' => False), 'fs_creator' => array('type' => 'int','precision' => '4','nullable' => False), 'fs_modifier' => array('type' => 'int','precision' => '4'), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index e599dd90e5..e8ffd70766 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -45,3 +45,15 @@ function phpgwapi_upgrade1_7_001() return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.7.002'; } + +function phpgwapi_upgrade1_7_002() +{ + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_sqlfs','fs_mime',array( + 'type' => 'varchar', + 'precision' => '96', + 'nullable' => False + )); + + return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.7.003'; +} +