Added link_directory and link_name columns to phpgw_vfs table. Added tables_update

This commit is contained in:
zone 2001-07-09 05:18:03 +00:00
parent eef8fcbcc0
commit 4f57aa39b1
3 changed files with 52 additions and 3 deletions

View File

@ -13,7 +13,7 @@
$setup_info['phpwebhosting']['name'] = 'phpwebhosting';
$setup_info['phpwebhosting']['title'] = 'PHPWebHosting';
$setup_info['phpwebhosting']['version'] = '0.9.13.001';
$setup_info['phpwebhosting']['version'] = '0.9.13.004';
$setup_info['phpwebhosting']['app_order'] = 10;
$setup_info['phpwebhosting']['tables'] = array('phpgw_vfs');
$setup_info['phpwebhosting']['enable'] = 1;

View File

@ -23,7 +23,7 @@
'owner_id' => array('type' => 'int', 'precision' => 4,'nullable' => False),
'createdby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'modifiedby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'created' => array('type' => 'date','nullable' => False),
'created' => array('type' => 'date','nullable' => False,'default' => '0000-00-00'),
'modified' => array('type' => 'date','nullable' => True),
'size' => array('type' => 'int', 'precision' => 4,'nullable' => True),
'mime_type' => array('type' => 'varchar', 'precision' => 150,'nullable' => True),
@ -31,7 +31,9 @@
'comment' => array('type' => 'text','nullable' => True),
'app' => array('type' => 'varchar', 'precision' => 25,'nullable' => True),
'directory' => array('type' => 'text','nullable' => True),
'name' => array('type' => 'text','nullable' => False)
'name' => array('type' => 'text','nullable' => False),
'link_directory' => array('type' => 'text','nullable' => True),
'link_name' => array('type' => 'text','nullable' => True)
),
'pk' => array('file_id'),
'fk' => array(),
@ -39,4 +41,5 @@
'uc' => array()
),
);
?>

View File

@ -0,0 +1,46 @@
<?php
/**************************************************************************\
* phpGroupWare - PHPWebHosting *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
$test[] = '0.9.13.001';
function phpwebhosting_upgrade0_9_13_001()
{
global $setup_info, $phpgw_setup;
$phpgw_setup->oProc->AddColumn('phpgw_vfs', 'link_directory', array ('type' => 'text'));
$phpgw_setup->oProc->AddColumn('phpgw_vfs', 'link_name', array ('type' => 'text'));
$setup_info['phpwebhosting']['currentver'] = '0.9.13.002';
return $setup_info['phpwebhosting']['currentver'];
}
$test[] = '0.9.13.002';
function phpwebhosting_upgrade0_9_13_002()
{
global $setup_info;
$setup_info['phpwebhosting']['currentver'] = '0.9.13.003';
return $setup_info['phpwebhosting']['currentver'];
}
$test[] = '0.9.13.003';
function phpwebhosting_upgrade0_9_13_003()
{
global $setup_info;
$setup_info['phpwebhosting']['currentver'] = '0.9.13.004';
return $setup_info['phpwebhosting']['currentver'];
}
?>