Index: trunk/phpgwapi/setup/tables_baseline.inc.php
===================================================================
--- trunk/phpgwapi/setup/tables_baseline.inc.php	(revision 2)
+++ trunk/phpgwapi/setup/tables_baseline.inc.php	(revision 8142)
@@ -108,5 +108,5 @@
 				'sessionid' => array('type' => 'varchar', 'precision' => 30),
 				'loginid' => array('type' => 'varchar', 'precision' => 30),
-				'ip' => array('type' => 'varchar', 'precision' => 30),
+				'ip' => array('type' => 'varchar', 'precision' => 255),
 				'li' => array('type' => 'int', 'precision' => 4),
 				'lo' => array('type' => 'int', 'precision' => 4)
Index: trunk/phpgwapi/setup/tables_update.inc.php
===================================================================
--- trunk/phpgwapi/setup/tables_update.inc.php	(revision 7909)
+++ trunk/phpgwapi/setup/tables_update.inc.php	(revision 8142)
@@ -20,5 +20,4 @@
 		$GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.0.008';
 		return $GLOBALS['setup_info']['phpgwapi']['currentver'];
-
 	}
 	
@@ -28,5 +27,4 @@
 		$GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.0.0.pre-alpha';
 		return $GLOBALS['setup_info']['phpgwapi']['currentver'];
-
 	}
 
@@ -179,6 +177,6 @@
     function phpgwapi_upgrade2_4_2()
     {
-            $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.0';
-            return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.0';
+        return $GLOBALS['setup_info']['phpgwapi']['currentver'];
     }
 
@@ -186,11 +184,44 @@
 	function phpgwapi_upgrade2_5_0()
 	{
-	        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.1';
-	        global $setup_info,$phpgw_setup;
-	        $phpgw_setup->oProc->query("ALTER TABLE phpgw_access_log ALTER COLUMN ip TYPE character varying(255) ");
-
-	        return $GLOBALS['setup_info']['phpgwapi']['currentver'];
-	}
-    
-
+        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.1';
+        global $setup_info,$phpgw_setup;
+        $phpgw_setup->oProc->query("ALTER TABLE phpgw_access_log ALTER COLUMN ip TYPE character varying(255) ");
+
+        return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+	}
+
+    $test[] = '2.5.1';
+    function phpgwapi_upgrade2_5_1()
+    {
+        global $phpgw_setup;
+
+        $phpgw_setup->oProc->query( 'select * from information_schema.tables where table_name= \'phpgw_vfs\'');
+        if( !$phpgw_setup->oProc->next_record() )
+        {
+            $phpgw_setup->oProc->CreateTable('phpgw_vfs', array(
+                'fd' => array(
+                    'file_id' => array('type' => 'auto','nullable' => False),
+                    'owner_id' => array('type' => 'int','precision' => '4','nullable' => False),
+                    'createdby_id' => array('type' => 'int','precision' => '4'),
+                    'modifiedby_id' => array('type' => 'int','precision' => '4'),
+                    'created' => array('type' => 'timestamp','nullable' => False,'default' => '1970-01-01'),
+                    'modified' => array('type' => 'timestamp'),
+                    'size' => array('type' => 'int','precision' => '4'),
+                    'mime_type' => array('type' => 'varchar','precision' => '64'),
+                    'deleteable' => array('type' => 'char','precision' => '1','default' => 'Y'),
+                    'comment' => array('type' => 'varchar','precision' => '255'),
+                    'app' => array('type' => 'varchar','precision' => '25'),
+                    'directory' => array('type' => 'varchar','precision' => '255'),
+                    'name' => array('type' => 'varchar','precision' => '128','nullable' => False),
+                    'link_directory' => array('type' => 'varchar','precision' => '255'),
+                    'link_name' => array('type' => 'varchar','precision' => '128'),
+                    'version' => array('type' => 'varchar','precision' => '30','nullable' => False,'default' => '0.0.0.0'),
+                    'content' => array('type' => 'longtext')
+                )
+            ));
+        }
+
+        $GLOBALS['setup_info']['phpgwapi']['currentver'] = '2.5.1.0';
+        return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+    }
 ?>
Index: trunk/phpgwapi/setup/setup.inc.php
===================================================================
--- trunk/phpgwapi/setup/setup.inc.php	(revision 7909)
+++ trunk/phpgwapi/setup/setup.inc.php	(revision 8142)
@@ -14,6 +14,6 @@
 	$setup_info['phpgwapi']['name']      = 'phpgwapi';
 	$setup_info['phpgwapi']['title']     = 'API';
-	$setup_info['phpgwapi']['version']   = '2.5.1';
-	$setup_info['phpgwapi']['versions']['current_header'] = '2.5.0';
+	$setup_info['phpgwapi']['version']   = '2.5.1.0';
+	$setup_info['phpgwapi']['versions']['current_header'] = '2.5.1';
 	$setup_info['phpgwapi']['enable']    = 3;
 	$setup_info['phpgwapi']['app_order'] = 1;
@@ -41,6 +41,2 @@
 	$setup_info['phpgwapi']['tables'][]  = 'phpgw_history_log';
 	$setup_info['phpgwapi']['tables'][]  = 'phpgw_async';
-
-
-
-
