From b3c3791b5e5271be2bf0833c28579ab2501def61 Mon Sep 17 00:00:00 2001 From: Zone Date: Mon, 26 Aug 2002 04:38:29 +0000 Subject: [PATCH] Add 'content' column to phpgw_vfs table --- phpgwapi/setup/tables_current.inc.php | 1 + phpgwapi/setup/tables_update.inc.php | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 014ede242f..117152c2d9 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -329,6 +329,7 @@ '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') + 'content' => array('type' => 'text','nullable' => False) ), 'pk' => array('file_id'), 'fk' => array(), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 858e9ac11c..87245e4155 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -78,4 +78,13 @@ $setup_info['phpgwapi']['currentver'] = '0.9.15.003'; return $setup_info['phpgwapi']['currentver']; } + + $test[] = '0.9.15.003'; + function phpgwapi_upgrade0_9_15_003() + { + $GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_vfs','content', array ('type' => 'text', 'nullable' => False)); + + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.15.004'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } ?>