diff --git a/filemanager/setup/setup.inc.php b/filemanager/setup/setup.inc.php index 35d773b0c4..be70eb7660 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.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; diff --git a/filemanager/setup/tables_current.inc.php b/filemanager/setup/tables_current.inc.php index 83266902d3..2165bc8a3e 100644 --- a/filemanager/setup/tables_current.inc.php +++ b/filemanager/setup/tables_current.inc.php @@ -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() ), ); + ?> diff --git a/filemanager/setup/tables_update.inc.php b/filemanager/setup/tables_update.inc.php new file mode 100644 index 0000000000..93e26a591f --- /dev/null +++ b/filemanager/setup/tables_update.inc.php @@ -0,0 +1,46 @@ +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']; + } + +?>