1 | <?php |
---|
2 | /**************************************************************************\ |
---|
3 | * eGroupWare - Setup * |
---|
4 | * http://www.egroupware.org * |
---|
5 | * -------------------------------------------- * |
---|
6 | * This program is free software; you can redistribute it and/or modify it * |
---|
7 | * under the terms of the GNU General Public License as published by the * |
---|
8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
9 | * option) any later version. * |
---|
10 | \**************************************************************************/ |
---|
11 | |
---|
12 | // ALTER TABLE |
---|
13 | $oProc->query("ALTER TABLE phpgw_vfs ALTER COLUMN created TYPE timestamp;"); |
---|
14 | $oProc->query("ALTER TABLE phpgw_vfs ALTER COLUMN modified TYPE timestamp;"); |
---|
15 | |
---|
16 | // CREATE TABLE |
---|
17 | $oProc->query("CREATE TABLE phpgw_vfs_quota (directory VARCHAR(100), quota_size INT NOT NULL, PRIMARY KEY (directory));"); |
---|
18 | |
---|
19 | // DELETE |
---|
20 | $oProc->query("DELETE FROM phpgw_config WHERE config_app = 'filemanager';"); |
---|
21 | $oProc->query("DELETE FROM phpgw_preferences WHERE preference_app = 'filemanager';"); |
---|
22 | |
---|
23 | // INSERT |
---|
24 | $oProc->query("INSERT INTO phpgw_config VALUES ('filemanager','filemanager_quota_size',500);"); |
---|
25 | $oProc->query("INSERT INTO phpgw_config VALUES ('filemanager','filemanager_Max_file_size',20);"); |
---|
26 | $oProc->query('INSERT INTO phpgw_preferences VALUES (-2,\'filemanager\',\'a:19:{s:4:"name";s:1:"1";s:9:"mime_type";s:1:"1";s:4:"size";s:1:"1";s:7:"created";s:1:"1";s:8:"modified";s:1:"1";s:5:"owner";s:1:"1";s:12:"createdby_id";s:1:"1";s:13:"modifiedby_id";s:1:"1";s:3:"app";s:1:"0";s:7:"comment";s:1:"1";s:7:"version";s:1:"1";s:12:"viewinnewwin";s:1:"1";s:12:"viewonserver";s:1:"1";s:13:"viewtextplain";s:1:"1";s:6:"dotdot";s:1:"1";s:8:"dotfiles";s:1:"1";s:8:"pdf_type";s:8:"portrait";s:14:"pdf_paper_type";s:2:"a4";s:14:"files_per_page";s:3:"200";}\');'); |
---|
27 | $oProc->query("INSERT INTO phpgw_vfs (owner_id, createdby_id, modifiedby_id, created, modified, size, mime_type, deleteable, comment, app, directory, name, link_directory, link_name) VALUES (1,0,0,'1970-01-01',NULL,NULL,'Directory','Y',NULL,NULL,'/','', NULL, NULL);"); |
---|
28 | $oProc->query("INSERT INTO phpgw_vfs (owner_id, createdby_id, modifiedby_id, created, modified, size, mime_type, deleteable, comment, app, directory, name, link_directory, link_name) VALUES (2,0,0,'1970-01-01',NULL,NULL,'Directory','Y',NULL,NULL,'/','home', NULL, NULL);"); |
---|
29 | |
---|
30 | ?> |
---|