[Fusionforge-commits] r15990 - trunk/src/db

Franck VILLAUME nerville at fusionforge.org
Sat Jul 14 16:17:02 CEST 2012


Author: nerville
Date: 2012-07-14 16:17:01 +0200 (Sat, 14 Jul 2012)
New Revision: 15990

Added:
   trunk/src/db/20120714-docman-docdata-statistics.sql
Log:
docman: add download column to store per file statistic

Copied: trunk/src/db/20120714-docman-docdata-statistics.sql (from rev 15989, trunk/src/db/20111002-docman-doc_groups-createdate-updatedate.sql)
===================================================================
--- trunk/src/db/20120714-docman-docdata-statistics.sql	                        (rev 0)
+++ trunk/src/db/20120714-docman-docdata-statistics.sql	2012-07-14 14:17:01 UTC (rev 15990)
@@ -0,0 +1,4 @@
+alter table doc_data add column download integer DEFAULT 0 NOT NULL;
+DROP VIEW docdata_vw;
+CREATE VIEW docdata_vw AS
+    SELECT users.user_name, users.realname, users.email, d.group_id, d.docid, d.stateid, d.title, d.updatedate, d.createdate, d.created_by, d.doc_group, d.description, d.download, d.filename, d.filetype, d.filesize, d.reserved, d.reserved_by, d.locked, d.locked_by, d.lockdate, doc_states.name AS state_name, doc_groups.groupname AS group_name FROM doc_data d, users, doc_groups, doc_states where d.created_by = users.user_id and doc_groups.doc_group = d.doc_group and doc_states.stateid = d.stateid;




More information about the Fusionforge-commits mailing list