diff --git a/filemanager/create_tables.mysql b/filemanager/create_tables.mysql new file mode 100644 index 0000000000..58a37fdd15 --- /dev/null +++ b/filemanager/create_tables.mysql @@ -0,0 +1,19 @@ +CREATE TABLE phpgw_vfs ( + file_id int(11) DEFAULT '0' NOT NULL auto_increment, + owner_id int(11) DEFAULT '0' NOT NULL, + createdby_id int(11), + modifiedby_id int(11), + created date DEFAULT '0000-00-00' NOT NULL, + modified date, + size int(14), + mime_type varchar(150), + deleteable char(1) DEFAULT 'Y', + comment text, + app varchar(25), + directory text, + name text NOT NULL, + PRIMARY KEY (file_id) +); + +INSERT INTO phpgw_vfs VALUES (1,0,0,NULL,NULL,NULL,NULL,'Directory','Y',NULL,'phpwebhosting','/',''); +INSERT INTO phpgw_vfs VALUES (1,0,0,NULL,NULL,NULL,NULL,'Directory','Y',NULL,'phpwebhosting','/','home'); diff --git a/filemanager/create_tables.pgsql b/filemanager/create_tables.pgsql new file mode 100755 index 0000000000..1674030b19 --- /dev/null +++ b/filemanager/create_tables.pgsql @@ -0,0 +1,23 @@ +BEGIN WORK; + +CREATE TABLE phpgw_vfs ( + file_id int(11) DEFAULT '0' NOT NULL serial, + owner_id int(11) DEFAULT '0' NOT NULL, + createdby_id int(11), + modifiedby_id int(11), + created date DEFAULT '0000-00-00' NOT NULL, + modified date, + size int(14), + mime_type varchar(150), + deleteable char(1) DEFAULT 'Y', + comment text, + app varchar(25), + directory text, + name text NOT NULL, + PRIMARY KEY (file_id) +); + +INSERT INTO phpgw_vfs VALUES (1,0,0,NULL,NULL,NULL,NULL,'Directory','Y',NULL,'phpwebhosting','/',''); +INSERT INTO phpgw_vfs VALUES (1,0,0,NULL,NULL,NULL,NULL,'Directory','Y',NULL,'phpwebhosting','/','home');; + +COMMIT;