Added link_directory, link_name, and version columns

This commit is contained in:
zone 2001-07-13 05:15:44 +00:00
parent d633286c8f
commit 5e5e2d8481
3 changed files with 15 additions and 2 deletions

View File

@ -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;

View File

@ -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(),

View File

@ -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'];
}
?>