From 5e5e2d8481782a904dd9d9c2cd7e5ae81e4c5ae6 Mon Sep 17 00:00:00 2001 From: zone Date: Fri, 13 Jul 2001 05:15:44 +0000 Subject: [PATCH] Added link_directory, link_name, and version columns --- filemanager/setup/setup.inc.php | 2 +- filemanager/setup/tables_current.inc.php | 3 ++- filemanager/setup/tables_update.inc.php | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/filemanager/setup/setup.inc.php b/filemanager/setup/setup.inc.php index be70eb7660..d9927cf6ea 100755 --- a/filemanager/setup/setup.inc.php +++ b/filemanager/setup/setup.inc.php @@ -13,7 +13,7 @@ $setup_info['phpwebhosting']['name'] = 'phpwebhosting'; $setup_info['phpwebhosting']['title'] = 'PHPWebHosting'; - $setup_info['phpwebhosting']['version'] = '0.9.13.004'; + $setup_info['phpwebhosting']['version'] = '0.9.13.005'; $setup_info['phpwebhosting']['app_order'] = 10; $setup_info['phpwebhosting']['tables'] = array('phpgw_vfs'); $setup_info['phpwebhosting']['enable'] = 1; diff --git a/filemanager/setup/tables_current.inc.php b/filemanager/setup/tables_current.inc.php index 2165bc8a3e..5bef6092e7 100644 --- a/filemanager/setup/tables_current.inc.php +++ b/filemanager/setup/tables_current.inc.php @@ -33,7 +33,8 @@ 'directory' => array('type' => 'text','nullable' => True), 'name' => array('type' => 'text','nullable' => False), 'link_directory' => array('type' => 'text','nullable' => True), - 'link_name' => 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') ), 'pk' => array('file_id'), 'fk' => array(), diff --git a/filemanager/setup/tables_update.inc.php b/filemanager/setup/tables_update.inc.php index 93e26a591f..b01d7cadf5 100644 --- a/filemanager/setup/tables_update.inc.php +++ b/filemanager/setup/tables_update.inc.php @@ -43,4 +43,16 @@ return $setup_info['phpwebhosting']['currentver']; } + $test[] = '0.9.13.004'; + function phpwebhosting_upgrade0_9_13_004() + { + global $setup_info, $phpgw_setup; + + $phpgw_setup->oProc->AddColumn('phpgw_vfs', 'version', array ('type' => 'varchar', 'precision' => 30,'nullable' => False, 'default' => '0.0.0.0')); + + $setup_info['phpwebhosting']['currentver'] = '0.9.13.005'; + + return $setup_info['phpwebhosting']['currentver']; + } + ?>