diff --git a/filemanager/setup/default_records.inc.php b/filemanager/setup/default_records.inc.php new file mode 100644 index 0000000000..7f365b4319 --- /dev/null +++ b/filemanager/setup/default_records.inc.php @@ -0,0 +1,14 @@ +query ("INSERT INTO phpgw_vfs VALUES (1,0,0,NULL,'2000-01-01',NULL,NULL,'Directory','Y',NULL,'phpwebhosting','/',''"); + $oProc->query ("INSERT INTO phpgw_vfs VALUES (2,0,0,NULL,'2000-01-01',NULL,NULL,'Directory','Y',NULL,'phpwebhosting','/','home'"); +?> diff --git a/filemanager/setup/setup.inc.php b/filemanager/setup/setup.inc.php index 0fb9e45192..573c45133b 100755 --- a/filemanager/setup/setup.inc.php +++ b/filemanager/setup/setup.inc.php @@ -15,6 +15,7 @@ $setup_info['phpwebhosting']['title'] = 'PHPWebHosting'; $setup_info['phpwebhosting']['version'] = '0.9.13.001'; $setup_info['phpwebhosting']['app_order'] = 10; + $setup_info['phpwebhosting']['tables'] = array('phpgw_vfs'); $setup_info['phpwebhosting']['enable'] = 1; /* The hooks this app includes, needed for hooks registration */ diff --git a/filemanager/setup/tables_current.inc.php b/filemanager/setup/tables_current.inc.php new file mode 100644 index 0000000000..d26a993ce1 --- /dev/null +++ b/filemanager/setup/tables_current.inc.php @@ -0,0 +1,42 @@ + 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,'nullable' => True), + 'modifiedby_id' => array('type' => 'int', 'precision' => 4,'nullable' => True), + '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), + 'deleteable' => array('type' => 'char', 'precision' => 1,'nullable' => True,'default' => 'Y'), + '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) + ), + 'pk' => array('file_id'), + 'fk' => array(), + 'ix' => array(), + 'uc' => array() + ), + ); +?> \ No newline at end of file