From e61d69bb423d3cbf32937c6dfeb19775391dd1bd Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 11 Jun 2001 23:42:16 +0000 Subject: [PATCH] Add baseline, add tables to setup.inc.php --- filemanager/setup/setup.inc.php | 5 +++ filemanager/setup/tables_baseline.inc.php | 42 +++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 filemanager/setup/tables_baseline.inc.php diff --git a/filemanager/setup/setup.inc.php b/filemanager/setup/setup.inc.php index 573c45133b..61b1fafbf0 100755 --- a/filemanager/setup/setup.inc.php +++ b/filemanager/setup/setup.inc.php @@ -21,6 +21,11 @@ /* The hooks this app includes, needed for hooks registration */ $setup_info['phpwebhosting']['hooks'][] = 'preferences'; + /* The tables this app creates */ + $setup_info['addressbook']['tables'] = array( + 'phpgw_vfs' + ); + /* Dependencies for this app to work */ $setup_info['phpwebhosting']['depends'][] = array( 'appname' => 'phpgwapi', diff --git a/filemanager/setup/tables_baseline.inc.php b/filemanager/setup/tables_baseline.inc.php new file mode 100644 index 0000000000..d26a993ce1 --- /dev/null +++ b/filemanager/setup/tables_baseline.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