[Fusionforge-commits] r13752 - in trunk: plugins/old/webcalendar/db plugins/old/webcalendar/www src/db src/db/SQL_2.5 src/db/SQL_2.6 src/deb-specific src/plugins/cvstracker/db src/plugins/hudson/db src/plugins/mantisbt/db src/plugins/mediawiki/db src/plugins/projects_hierarchy/db src/plugins/quota_management/db src/plugins/scmhook/db src/plugins/svntracker/db src/plugins/wiki/db src/plugins/wiki/www/schemas src/plugins/wiki/www/tests/unit tools

Thorsten Glaser mirabilos at fusionforge.org
Tue Jul 12 13:40:00 CEST 2011


Author: mirabilos
Date: 2011-07-12 13:39:59 +0200 (Tue, 12 Jul 2011)
New Revision: 13752

Modified:
   trunk/plugins/old/webcalendar/db/webcalendar-init.sql
   trunk/plugins/old/webcalendar/www/tables-db2.sql
   trunk/plugins/old/webcalendar/www/tables-ibase.sql
   trunk/plugins/old/webcalendar/www/tables-postgres.sql
   trunk/src/db/20010126.sql
   trunk/src/db/20010206.sql
   trunk/src/db/20010304-1.sql
   trunk/src/db/20010304-2.sql
   trunk/src/db/20010304-3.sql
   trunk/src/db/20010305.sql
   trunk/src/db/20010313.sql
   trunk/src/db/20010409.sql
   trunk/src/db/20010511.sql
   trunk/src/db/20021125.sql
   trunk/src/db/20021212.sql
   trunk/src/db/20021214.sql
   trunk/src/db/20021223-2.sql
   trunk/src/db/20030102-2.sql
   trunk/src/db/20030107.sql
   trunk/src/db/20030113-2.sql
   trunk/src/db/20030822.sql
   trunk/src/db/20040329.sql
   trunk/src/db/20040722.sql
   trunk/src/db/20040729.sql
   trunk/src/db/20040804.sql
   trunk/src/db/20040826.sql
   trunk/src/db/20040914.sql
   trunk/src/db/20041001.sql
   trunk/src/db/20041014.sql
   trunk/src/db/20041104.sql
   trunk/src/db/20050214-nss.sql
   trunk/src/db/20050224-2.sql
   trunk/src/db/20050225-nsssetup.sql
   trunk/src/db/20050311.sql
   trunk/src/db/20050315.sql
   trunk/src/db/20050325-2.sql
   trunk/src/db/20050628.sql
   trunk/src/db/20050804-1.sql
   trunk/src/db/20050822-2.sql
   trunk/src/db/20050823.sql
   trunk/src/db/20050831.sql
   trunk/src/db/20050906.sql
   trunk/src/db/20051003.sql
   trunk/src/db/20060113.sql
   trunk/src/db/20060214.sql
   trunk/src/db/20060216-2-debian-nocommit.sql
   trunk/src/db/20060216-2.sql
   trunk/src/db/20060401.sql
   trunk/src/db/20090327_create_table_project_tags.sql
   trunk/src/db/20090507-add_artifact_workflow.sql
   trunk/src/db/20090507-add_element_pos.sql
   trunk/src/db/20090507-browse_list.sql
   trunk/src/db/20100506-add-widgets.sql
   trunk/src/db/20100518-pfo-rbac.sql
   trunk/src/db/20100524-pfo-rbac.sql
   trunk/src/db/20100610-pfo-rbac.sql
   trunk/src/db/20100926-pfo-rbac.sql
   trunk/src/db/20100927-pfo-rbac.sql
   trunk/src/db/20101021-pfo-rbac.sql
   trunk/src/db/20110211-docman-activityvw.sql
   trunk/src/db/20110310-docman-trashdir.sql
   trunk/src/db/FTI-20050315.sql
   trunk/src/db/FTI-20050401.sql
   trunk/src/db/FTI-20050530.sql
   trunk/src/db/FTI.sql
   trunk/src/db/SQL_2.5/DefaultValues_2_5.sql
   trunk/src/db/SQL_2.6/DefaultValues.sql
   trunk/src/db/SQL_2.6/replication-reset-master.sql
   trunk/src/db/SQL_2.6/replication-reset-slave.sql
   trunk/src/db/SQL_2.6/replication-slave.sql
   trunk/src/db/SQL_2.6/user_rating.sql
   trunk/src/db/gforge-data-mysql.sql
   trunk/src/db/gforge-pgsql7.3.sql
   trunk/src/db/gforge-struct-mysql.sql
   trunk/src/db/gforge.sql
   trunk/src/db/gforge2.6.sql
   trunk/src/db/nss-pgsql.sql
   trunk/src/db/timetracking-init.sql
   trunk/src/deb-specific/sf-2.6-complete.sql
   trunk/src/deb-specific/sf2.5-to-sf2.6-extra.sql
   trunk/src/deb-specific/sf2.5-to-sf2.6.sql
   trunk/src/deb-specific/view_bug.sql
   trunk/src/deb-specific/view_patch.sql
   trunk/src/plugins/cvstracker/db/20050305.sql
   trunk/src/plugins/cvstracker/db/cvstracker-init.sql
   trunk/src/plugins/hudson/db/hudson-init.sql
   trunk/src/plugins/hudson/db/install.sql
   trunk/src/plugins/hudson/db/uninstall.sql
   trunk/src/plugins/mantisbt/db/mantisbt-init.sql
   trunk/src/plugins/mediawiki/db/mediawiki-init.sql
   trunk/src/plugins/projects_hierarchy/db/projects_hierarchy-init.sql
   trunk/src/plugins/quota_management/db/quota_management-init.sql
   trunk/src/plugins/scmhook/db/scmhook-init.sql
   trunk/src/plugins/svntracker/db/20051011.sql
   trunk/src/plugins/wiki/db/wiki-init.sql
   trunk/src/plugins/wiki/www/schemas/mssql-initialize.sql
   trunk/src/plugins/wiki/www/schemas/mysql-1_3_11.sql
   trunk/src/plugins/wiki/www/schemas/mysql-initialize.sql
   trunk/src/plugins/wiki/www/schemas/oci8-destroy.sql
   trunk/src/plugins/wiki/www/schemas/oci8-initialize.sql
   trunk/src/plugins/wiki/www/schemas/psql-1_3_12.sql
   trunk/src/plugins/wiki/www/schemas/psql-initialize.sql
   trunk/src/plugins/wiki/www/schemas/psql-tsearch2.sql
   trunk/src/plugins/wiki/www/schemas/sqlite-initialize.sql
   trunk/src/plugins/wiki/www/schemas/sqlsrv-initialize.sql
   trunk/src/plugins/wiki/www/tests/unit/mysql-test-initialize.sql
   trunk/src/plugins/wiki/www/tests/unit/psql-test-initialize.sql
   trunk/tools/delete_deleted_group.sql
   trunk/tools/delete_deleted_user.sql
   trunk/tools/find_user_group_double.sql
Log:
drop whitespace at EOL, *.sql

Modified: trunk/plugins/old/webcalendar/db/webcalendar-init.sql
===================================================================
--- trunk/plugins/old/webcalendar/db/webcalendar-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/plugins/old/webcalendar/db/webcalendar-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,5 +1,5 @@
 CREATE VIEW webcal_user AS
-SELECT user_name AS cal_login, user_pw AS cal_passwd, lastname AS cal_lastname, firstname AS cal_firstname, status AS cal_is_admin, email AS cal_email FROM users; 
+SELECT user_name AS cal_login, user_pw AS cal_passwd, lastname AS cal_lastname, firstname AS cal_firstname, status AS cal_is_admin, email AS cal_email FROM users;
 -- CREATE TABLE webcal_user (
 --  cal_login VARCHAR(25) NOT NULL,
 --  cal_passwd VARCHAR(32),
@@ -48,7 +48,7 @@
 
 CREATE TABLE webcal_entry_user (
   cal_id int DEFAULT '0' NOT NULL,
-  cal_login varchar(25) DEFAULT '' NOT NULL, 
+  cal_login varchar(25) DEFAULT '' NOT NULL,
   cal_status char(1) DEFAULT 'A' NOT NULL,
   cal_category INT DEFAULT NULL,
   PRIMARY KEY ( cal_id,cal_login )
@@ -113,8 +113,8 @@
 --);
 
 DROP TABLE webcal_group_user;
-CREATE VIEW webcal_group_user AS 
-SELECT group_id AS cal_group_id, users.user_name AS cal_login FROM users,user_group 
+CREATE VIEW webcal_group_user AS
+SELECT group_id AS cal_group_id, users.user_name AS cal_login FROM users,user_group
 WHERE users.user_id = user_group.user_id;
 --CREATE TABLE webcal_group_user (
 --  cal_group_id INT NOT NULL,

Modified: trunk/plugins/old/webcalendar/www/tables-db2.sql
===================================================================
--- trunk/plugins/old/webcalendar/www/tables-db2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/plugins/old/webcalendar/www/tables-db2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -8,8 +8,8 @@
   PRIMARY KEY ( cal_login )
 );
 
-INSERT INTO webcal_user 
- (cal_login, cal_passwd, cal_lastname, cal_firstname, cal_is_admin) 
+INSERT INTO webcal_user
+ (cal_login, cal_passwd, cal_lastname, cal_firstname, cal_is_admin)
  VALUES ( 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'Default', 'Y' );
 
 
@@ -52,7 +52,7 @@
 
 CREATE TABLE webcal_entry_user (
   cal_id int DEFAULT 0 NOT NULL,
-  cal_login varchar(25) DEFAULT '' NOT NULL, 
+  cal_login varchar(25) DEFAULT '' NOT NULL,
   cal_status char(1) DEFAULT 'A' NOT NULL,
   cal_category INT DEFAULT NULL,
   PRIMARY KEY ( cal_id,cal_login )

Modified: trunk/plugins/old/webcalendar/www/tables-ibase.sql
===================================================================
--- trunk/plugins/old/webcalendar/www/tables-ibase.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/plugins/old/webcalendar/www/tables-ibase.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,7 +1,7 @@
 
  /* Table: WEBCAL_ENTRY, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_ENTRY" 
+CREATE TABLE "WEBCAL_ENTRY"
 (
    "CAL_ID" INTEGER NOT NULL,
    "CAL_GROUP_ID" INTEGER,
@@ -28,7 +28,7 @@
 
 /* Table: WEBCAL_ENTRY_REPEATS, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_ENTRY_REPEATS" 
+CREATE TABLE "WEBCAL_ENTRY_REPEATS"
 (
    "CAL_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_TYPE" VARCHAR(20) CHARACTER SET WIN1252,
@@ -38,7 +38,7 @@
 );
 
 /* Table: WEBCAL_ENTRY_REPEATS_NOT, Owner: SYSDBA */
-CREATE TABLE "WEBCAL_ENTRY_REPEATS_NOT" 
+CREATE TABLE "WEBCAL_ENTRY_REPEATS_NOT"
    "CAL_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_DATE" INTEGER NOT NULL
 );
@@ -46,7 +46,7 @@
 
 /* Table: WEBCAL_ENTRY_USER, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_ENTRY_USER" 
+CREATE TABLE "WEBCAL_ENTRY_USER"
 (
    "CAL_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_LOGIN" VARCHAR(25) CHARACTER SET WIN1252 DEFAULT '' NOT NULL,
@@ -57,7 +57,7 @@
 
 /* Table: WEBCAL_ENTRY_EXT_USER, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_ENTRY_EXT_USER" 
+CREATE TABLE "WEBCAL_ENTRY_EXT_USER"
 (
    "CAL_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_FULLNAME" VARCHAR(50) CHARACTER SET WIN1252 DEFAULT '' NOT NULL,
@@ -67,7 +67,7 @@
 
 /* Table: WEBCAL_REMINDER_LOG, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_REMINDER_LOG" 
+CREATE TABLE "WEBCAL_REMINDER_LOG"
 (
    "CAL_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_NAME" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
@@ -78,7 +78,7 @@
 
 /* Table: WEBCAL_SITE_EXTRAS, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_SITE_EXTRAS" 
+CREATE TABLE "WEBCAL_SITE_EXTRAS"
 (
    "CAL_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_NAME" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
@@ -91,7 +91,7 @@
 
 /* Table: WEBCAL_USER, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_USER" 
+CREATE TABLE "WEBCAL_USER"
 (
    "CAL_LOGIN" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
    "CAL_PASSWD" VARCHAR(32) CHARACTER SET WIN1252,
@@ -104,7 +104,7 @@
 
 /* Table: WEBCAL_USER_LAYERS, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_USER_LAYERS" 
+CREATE TABLE "WEBCAL_USER_LAYERS"
 (
    "CAL_LAYERID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_LOGIN" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
@@ -116,7 +116,7 @@
 
 /* Table: WEBCAL_USER_PREF, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_USER_PREF" 
+CREATE TABLE "WEBCAL_USER_PREF"
 (
    "CAL_LOGIN" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
    "CAL_SETTING" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
@@ -125,7 +125,7 @@
 
 /* Table: WEBCAL_GROUP, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_GROUP" 
+CREATE TABLE "WEBCAL_GROUP"
 (
    "CAL_GROUP_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_OWNER" VARCHAR(25) CHARACTER SET WIN1252 NULL,
@@ -135,7 +135,7 @@
 
 /* Table: WEBCAL_GROUP_USER, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_GROUP_USER" 
+CREATE TABLE "WEBCAL_GROUP_USER"
 (
    "CAL_GROUP_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_LOGIN" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL
@@ -143,7 +143,7 @@
 
 /* Table: WEBCAL_VIEW, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_VIEW" 
+CREATE TABLE "WEBCAL_VIEW"
 (
    "CAL_VIEW_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_OWNER" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL,
@@ -154,7 +154,7 @@
 
 /* Table: WEBCAL_VIEW_USER, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_VIEW_USER" 
+CREATE TABLE "WEBCAL_VIEW_USER"
 (
    "CAL_VIEW_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_LOGIN" VARCHAR(25) CHARACTER SET WIN1252 NOT NULL
@@ -162,7 +162,7 @@
 
 /* Table: WEBCAL_CONFIG, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_CONFIG" 
+CREATE TABLE "WEBCAL_CONFIG"
 (
    "CAL_SETTING" VARCHAR(50) CHARACTER SET WIN1252 NOT NULL,
    "CAL_VALUE" VARCHAR(100) CHARACTER SET WIN1252
@@ -324,7 +324,7 @@
 
 /* Table: WEBCAL_ENTRY_LOG, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_ENTRY_LOG" 
+CREATE TABLE "WEBCAL_ENTRY_LOG"
 (
    "CAL_LOG_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAL_ENTRY_ID" INTEGER DEFAULT 0 NOT NULL,
@@ -339,7 +339,7 @@
 
 /* Table: WEBCAL_CATEGORIES, Owner: SYSDBA */
 
-CREATE TABLE "WEBCAL_CATEGORIES" 
+CREATE TABLE "WEBCAL_CATEGORIES"
 (
    "CAT_ID" INTEGER DEFAULT 0 NOT NULL,
    "CAT_OWNER" VARCHAR(25) CHARACTER SET WIN1252 NULL,

Modified: trunk/plugins/old/webcalendar/www/tables-postgres.sql
===================================================================
--- trunk/plugins/old/webcalendar/www/tables-postgres.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/plugins/old/webcalendar/www/tables-postgres.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -49,7 +49,7 @@
 
 CREATE TABLE webcal_entry_user (
   cal_id int DEFAULT '0' NOT NULL,
-  cal_login varchar(25) DEFAULT '' NOT NULL, 
+  cal_login varchar(25) DEFAULT '' NOT NULL,
   cal_status char(1) DEFAULT 'A' NOT NULL,
   cal_category INT DEFAULT NULL,
   PRIMARY KEY ( cal_id,cal_login )

Modified: trunk/src/db/20010126.sql
===================================================================
--- trunk/src/db/20010126.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010126.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -2,7 +2,7 @@
 -- purpose: stuff for project database and vhost maintanance
 
      CREATE TABLE prdb_dbs (
-        dbid SERIAL PRIMARY KEY, 
+        dbid SERIAL PRIMARY KEY,
         group_id INT NOT NULL,
         dbname TEXT NOT NULL,
         dbusername TEXT NOT NULL,
@@ -17,7 +17,7 @@
 
         stateid INT NOT NULL,
         statename TEXT
-    );                
+    );
 
 	CREATE UNIQUE INDEX idx_prdb_dbname ON prdb_dbs (dbname);
 
@@ -25,7 +25,7 @@
     INSERT INTO prdb_states VALUES ('2', 'Pending Create');
     INSERT INTO prdb_states VALUES ('3', 'Pending Delete');
     INSERT INTO prdb_states VALUES ('4', 'Pending Update');
-    INSERT INTO prdb_states VALUES ('5', 'Failed Create'); 
+    INSERT INTO prdb_states VALUES ('5', 'Failed Create');
     INSERT INTO prdb_states VALUES ('6', 'Failed Delete');
 	INSERT INTO prdb_states VALUES ('7', 'Failed Update');
 
@@ -34,14 +34,14 @@
         dbservername TEXT NOT NULL,
         dbsoftware TEXT NOT NULL
     );
-      
+
    INSERT INTO prdb_types VALUES ('1','pr-db1','mysql');
 
     CREATE TABLE prweb_vhost (
-        vhostid SERIAL PRIMARY KEY, 
-        vhost_name TEXT,        
+        vhostid SERIAL PRIMARY KEY,
+        vhost_name TEXT,
         docdir TEXT,
-		cgidir TEXT,	
+		cgidir TEXT,
         group_id INT NOT NULL
     );
 

Modified: trunk/src/db/20010206.sql
===================================================================
--- trunk/src/db/20010206.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010206.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -7,5 +7,5 @@
 ALTER TABLE db_images ADD COLUMN version int;
 ALTER TABLE db_images ALTER COLUMN version SET NOT NULL;
 
-CREATE UNIQUE INDEX usergroup_uniq_groupid_userid ON 
+CREATE UNIQUE INDEX usergroup_uniq_groupid_userid ON
 user_group(group_id,user_id);

Modified: trunk/src/db/20010304-1.sql
===================================================================
--- trunk/src/db/20010304-1.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010304-1.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -63,9 +63,9 @@
 --	create a view to make selecting all perms for a user_id/group_id easier
 --
 
-CREATE VIEW artifactperm_user_vw AS 
+CREATE VIEW artifactperm_user_vw AS
 SELECT ap.id, ap.group_artifact_id, ap.user_id, ap.perm_level, users.user_name, users.realname
-	FROM artifact_perm ap, users 
+	FROM artifact_perm ap, users
 	WHERE users.user_id=ap.user_id;
 
 CREATE VIEW artifactperm_artgrouplist_vw AS
@@ -134,7 +134,7 @@
 
 
 CREATE VIEW artifact_vw AS
-SELECT 
+SELECT
 artifact.*,
 u.user_name AS assigned_unixname,
 u.realname AS assigned_realname,
@@ -142,17 +142,17 @@
 u2.user_name AS submitted_unixname,
 u2.realname AS submitted_realname,
 u2.email AS submitted_email,
-artifact_status.status_name, 
-artifact_category.category_name, 
-artifact_group.group_name, 
-artifact_resolution.resolution_name 
-FROM 
+artifact_status.status_name,
+artifact_category.category_name,
+artifact_group.group_name,
+artifact_resolution.resolution_name
+FROM
 users u, users u2, artifact, artifact_status, artifact_category, artifact_group, artifact_resolution
-WHERE 
+WHERE
 artifact.assigned_to=u.user_id
 AND artifact.submitted_by=u2.user_id
-AND artifact.status_id=artifact_status.id 
-AND artifact.category_id=artifact_category.id 
+AND artifact.status_id=artifact_status.id
+AND artifact.category_id=artifact_category.id
 AND artifact.artifact_group_id=artifact_group.id
 AND artifact.resolution_id=artifact_resolution.id;
 
@@ -176,9 +176,9 @@
 --	create a view from the audit trail which joins the user table and history table
 --
 CREATE VIEW artifact_history_user_vw AS
-SELECT ah.id, ah.artifact_id, ah.field_name, ah.old_value, ah.entrydate, users.user_name 
-FROM artifact_history ah, users 
-WHERE ah.mod_by=users.user_id; 
+SELECT ah.id, ah.artifact_id, ah.field_name, ah.old_value, ah.entrydate, users.user_name
+FROM artifact_history ah, users
+WHERE ah.mod_by=users.user_id;
 
 --
 --	files attached to a given artifact
@@ -202,9 +202,9 @@
 --      create a view from the files which joins the user table and files table
 --
 CREATE VIEW artifact_file_user_vw AS
-SELECT af.id, af.artifact_id, af.description, af.bin_data, af.filename, af.filesize, af.filetype, 
+SELECT af.id, af.artifact_id, af.description, af.bin_data, af.filename, af.filesize, af.filetype,
 	af.adddate, af.submitted_by, users.user_name, users.realname
-FROM artifact_file af,users 
+FROM artifact_file af,users
 WHERE af.submitted_by=users.user_id;
 
 --
@@ -226,9 +226,9 @@
 --      create a view from the messages which joins the user table and messages table
 --
 CREATE VIEW artifact_message_user_vw AS
-SELECT am.id, am.artifact_id, am.from_email, am.body, am.adddate, 
+SELECT am.id, am.artifact_id, am.from_email, am.body, am.adddate,
 users.user_id, users.email, users.user_name, users.realname
-FROM artifact_message am,users 
+FROM artifact_message am,users
 WHERE am.submitted_by=users.user_id;
 
 --

Modified: trunk/src/db/20010304-2.sql
===================================================================
--- trunk/src/db/20010304-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010304-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -17,12 +17,12 @@
 --
 
 UPDATE groups SET bug_due_period='2592000' WHERE bug_due_period is null;
-INSERT INTO artifact_group_list 
+INSERT INTO artifact_group_list
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+100000,group_id,'Bugs','Bug Tracking System',use_bugs,
-1,send_all_bugs,new_bug_address,bug_due_period,1,1 
-FROM groups 
+1,send_all_bugs,new_bug_address,bug_due_period,1,1
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 
@@ -31,7 +31,7 @@
 --
 INSERT INTO artifact_perm
 (group_artifact_id,user_id,perm_level)
-SELECT group_id+100000,user_id,bug_flags 
+SELECT group_id+100000,user_id,bug_flags
 FROM user_group;
 
 --
@@ -60,13 +60,13 @@
 UPDATE bug SET summary=0 WHERE summary is NULL;
 UPDATE bug SET details='' WHERE details is NULL;
 
-INSERT INTO artifact 
+INSERT INTO artifact
 (artifact_id,group_artifact_id,status_id,category_id,artifact_group_id,priority,
 submitted_by,assigned_to,open_date,close_date,summary,details,resolution_id)
-SELECT 
+SELECT
 bug_id+100000,group_id+100000,status_id,category_id+100000,bug_group_id+100000,priority,
-submitted_by,assigned_to,date,close_date,summary,details,resolution_id 
-FROM bug 
+submitted_by,assigned_to,date,close_date,summary,details,resolution_id
+FROM bug
 ORDER BY group_id ASC;
 
 --
@@ -76,14 +76,14 @@
 UPDATE bug_history SET old_value=2 WHERE old_value='3' AND field_name='status_id';
 
 --BEGIN;
---SELECT * from bug_history 
+--SELECT * from bug_history
 --WHERE NOT EXISTS (select bug_id FROM bug
 --where bug.bug_id=bug_history.bug_id);
 --COMMIT;
 
 --DELETE FROM bug_history WHERE bug_id=0;
 
---DELETE FROM bug_history 
+--DELETE FROM bug_history
 --WHERE bug_id+100000 NOT IN (SELECT artifact_id FROM artifact);
 
 INSERT INTO artifact_history
@@ -145,12 +145,12 @@
 
 UPDATE groups SET support_due_period='2592000' WHERE support_due_period is null;
 
-INSERT INTO artifact_group_list 
+INSERT INTO artifact_group_list
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+200000,group_id,'Support Requests','Tech Support Tracking System',use_support,
-1,send_all_support,new_support_address,support_due_period,0,2 
-FROM groups  
+1,send_all_support,new_support_address,support_due_period,0,2
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 
@@ -171,7 +171,7 @@
 --
 --	support
 --
-DELETE FROM support WHERE NOT EXISTS 
+DELETE FROM support WHERE NOT EXISTS
 (SELECT group_id FROM groups WHERE support.group_id=groups.group_id);
 
 UPDATE patch SET summary=0 WHERE summary is NULL;
@@ -180,7 +180,7 @@
 INSERT INTO artifact
 (artifact_id,group_artifact_id,status_id,category_id,artifact_group_id,priority,
 submitted_by,assigned_to,open_date,close_date,summary,details,resolution_id)
-SELECT 
+SELECT
 support_id+200000,group_id+200000,support_status_id,support_category_id+200000,100,priority,
 submitted_by,assigned_to,open_date,close_date,summary,'',100
 FROM support
@@ -234,7 +234,7 @@
 (group_artifact_id,title,body)
 SELECT
 group_id+200000,title,body
-FROM support_canned_responses 
+FROM support_canned_responses
 WHERE group_id > 0;
 
 COMMIT;
@@ -245,19 +245,19 @@
 --      Patch Manager
 --
 --
---BEGIN; 
+--BEGIN;
 
 --
 --      set up patch ArtifactTypes for each group
 --
 UPDATE groups SET patch_due_period='2592000' WHERE patch_due_period is null;
 
-INSERT INTO artifact_group_list  
+INSERT INTO artifact_group_list
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+300000,group_id,'Patches','Patch Tracking System',use_patch,
-1,send_all_patches,new_patch_address,patch_due_period,1,3 
-FROM groups  
+1,send_all_patches,new_patch_address,patch_due_period,1,3
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 
@@ -349,7 +349,7 @@
 INSERT INTO artifact_file
 (artifact_id,description,bin_data,filename,filesize,filetype,adddate,submitted_by)
 SELECT patch_id+300000,'None',code,'None',length(code),'text/plain',open_date,submitted_by
-FROM patch 
+FROM patch
 WHERE code IS NOT NULL;
 
 --COMMIT;
@@ -369,8 +369,8 @@
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+350000,group_id,'Feature Requests','Feature Request Tracking System',1,
-1,0,'',45*24*60*60,0,4 
-FROM groups  
+1,0,'',45*24*60*60,0,4
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 

Modified: trunk/src/db/20010304-3.sql
===================================================================
--- trunk/src/db/20010304-3.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010304-3.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,13 +1,13 @@
-ALTER TABLE artifact_group_list ADD CONSTRAINT artifactgroup_groupid_fk 
+ALTER TABLE artifact_group_list ADD CONSTRAINT artifactgroup_groupid_fk
 	FOREIGN KEY (group_id) REFERENCES groups(group_id) MATCH FULL;
 
-ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_userid_fk 
+ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_userid_fk
         FOREIGN KEY (user_id) REFERENCES users(user_id) MATCH FULL;
-DELETE from artifact_perm 
-	where not exists (select group_artifact_id 
-	from artifact_group_list 
+DELETE from artifact_perm
+	where not exists (select group_artifact_id
+	from artifact_group_list
 	where artifact_perm.group_artifact_id=artifact_group_list.group_artifact_id);
-ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_groupartifactid_fk 
+ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_groupartifactid_fk
         FOREIGN KEY (group_artifact_id) REFERENCES artifact_group_list(group_artifact_id) MATCH FULL;
 
 ALTER TABLE artifact_category ADD CONSTRAINT artifactcategory_groupartifactid_fk

Modified: trunk/src/db/20010305.sql
===================================================================
--- trunk/src/db/20010305.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010305.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -60,5 +60,5 @@
 alter table groups rename column patch_due_period to dead12;
 alter table groups rename column support_due_period to dead13;
 
-drop index groups_unix; 
+drop index groups_unix;
 create unique index group_unix_uniq on groups (unix_group_name);

Modified: trunk/src/db/20010313.sql
===================================================================
--- trunk/src/db/20010313.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010313.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -26,7 +26,7 @@
         INSERT INTO forum_agg_msg_count (group_forum_id,count) \
                 VALUES (NEW.group_forum_id,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 CREATE TRIGGER forumgrouplist_insert_trig AFTER INSERT ON forum_group_list
@@ -61,7 +61,7 @@
 	INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count) \
 		VALUES (NEW.group_artifact_id,0,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 CREATE TRIGGER artifactgrouplist_insert_trig AFTER INSERT ON artifact_group_list
@@ -73,7 +73,7 @@
 --
 CREATE RULE artifact_insert_agg AS
 	ON INSERT TO artifact
-	DO UPDATE artifact_counts_agg SET count=count+1,open_count=open_count+1 
+	DO UPDATE artifact_counts_agg SET count=count+1,open_count=open_count+1
 		WHERE group_artifact_id=new.group_artifact_id;
 
 --
@@ -98,7 +98,7 @@
 		--
 		--	now see how to increment/decrement the old types sums
 		--
-		IF NEW.status_id <> OLD.status_id THEN 
+		IF NEW.status_id <> OLD.status_id THEN
 			IF OLD.status_id = 2 THEN
 				UPDATE artifact_counts_agg SET count=count-1 \
 					WHERE group_artifact_id=OLD.group_artifact_id;
@@ -115,25 +115,25 @@
 		END IF;
 	ELSE
 		--
-		-- just need to evaluate the status flag and 
+		-- just need to evaluate the status flag and
 		-- increment/decrement the counter as necessary
 		--
 		IF NEW.status_id <> OLD.status_id THEN
 			IF new.status_id = 1 THEN
 				UPDATE artifact_counts_agg SET open_count=open_count+1 \
 					WHERE group_artifact_id=new.group_artifact_id;
-			ELSE 
+			ELSE
 				IF new.status_id = 2 THEN
 					UPDATE artifact_counts_agg SET open_count=open_count-1 \
 						WHERE group_artifact_id=new.group_artifact_id;
-				ELSE 
+				ELSE
 					IF new.status_id = 3 THEN
 						UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1 \
 							WHERE group_artifact_id=new.group_artifact_id;
 					END IF;
 				END IF;
 			END IF;
-		END IF;	
+		END IF;
 	END IF;
 	RETURN NEW;
 END;

Modified: trunk/src/db/20010409.sql
===================================================================
--- trunk/src/db/20010409.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010409.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -65,9 +65,9 @@
 --	Populated daily by site_stats.php
 --
 CREATE TABLE stats_agg_site_by_group_tmp AS
-SELECT 
-	substring(day::text from 1 for 6)::int AS month, 
-	substring(day::text from 7 for 2)::int AS day, 
+SELECT
+	substring(day::text from 1 for 6)::int AS month,
+	substring(day::text from 7 for 2)::int AS day,
 	group_id,
 	count
 	from stats_agg_site_by_group ;
@@ -86,11 +86,11 @@
 --	Populated daily by site_stats.php
 --
 CREATE TABLE stats_agg_logo_by_group_tmp AS
-SELECT	   
+SELECT
 	substring(day::text from 1 for 6)::int AS month,
 	substring(day::text from 7 for 2)::int AS day,
 	group_id,
-	count 
+	count
 	from stats_agg_logo_by_group ;
 
 DROP TABLE stats_agg_logo_by_group;
@@ -113,7 +113,7 @@
 --	Migrate data from old stats_project table
 --
 INSERT INTO stats_subd_pages
-SELECT month,day,group_id,subdomain_views 
+SELECT month,day,group_id,subdomain_views
 FROM stats_project WHERE subdomain_views > 0;
 
 CREATE UNIQUE INDEX statssubdpages_month_day_group ON stats_subd_pages(month,day,group_id);
@@ -141,11 +141,11 @@
 --
 --	Migrate data from old stats_project table
 --
-INSERT INTO stats_cvs_group 
-SELECT month,day,group_id,cvs_checkouts,cvs_commits,cvs_adds 
-FROM stats_project 
-WHERE cvs_checkouts > 0 
-OR cvs_commits > 0 
+INSERT INTO stats_cvs_group
+SELECT month,day,group_id,cvs_checkouts,cvs_commits,cvs_adds
+FROM stats_project
+WHERE cvs_checkouts > 0
+OR cvs_commits > 0
 OR cvs_adds > 0;
 
 CREATE UNIQUE INDEX statscvsgroup_month_day_group ON stats_cvs_group(month,day,group_id);
@@ -284,8 +284,8 @@
 --
 --	Populated daily by site_stats.php
 --
-create table stats_site_tmp AS 
-select month,day,uniq_users,sessions,total_users,new_users,new_projects 
+create table stats_site_tmp AS
+select month,day,uniq_users,sessions,total_users,new_users,new_projects
 from stats_site;
 
 DROP TABLE stats_site;

Modified: trunk/src/db/20010511.sql
===================================================================
--- trunk/src/db/20010511.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20010511.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -8,5 +8,5 @@
 ranking int not null,
 metric float not null);
 
-CREATE UNIQUE INDEX user_metric_history_date_userid 
+CREATE UNIQUE INDEX user_metric_history_date_userid
 ON user_metric_history(month,day,user_id);

Modified: trunk/src/db/20021125.sql
===================================================================
--- trunk/src/db/20021125.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20021125.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -23,7 +23,7 @@
 -- Forum Rewrite
 --
 DROP INDEX forum_forumid_isfollowupto;
-CREATE VIEW forum_user_vw AS select forum.*,users.user_name,users.realname 
+CREATE VIEW forum_user_vw AS select forum.*,users.user_name,users.realname
 	FROM forum,users WHERE forum.posted_by=users.user_id;
 CREATE VIEW forum_group_list_vw AS SELECT forum_group_list.*, forum_agg_msg_count.count as total
     FROM forum_group_list LEFT JOIN forum_agg_msg_count USING (group_forum_id);

Modified: trunk/src/db/20021212.sql
===================================================================
--- trunk/src/db/20021212.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20021212.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -47,7 +47,7 @@
 INSERT INTO skills_data_types (type_name) values('Proposal');
 INSERT INTO skills_data_types (type_name) values('Investigation');
 
-UPDATE project_group_list 
-	set project_name='Default',description='Default Project - Don\'t Change' 
+UPDATE project_group_list
+	set project_name='Default',description='Default Project - Don\'t Change'
 	where group_project_id=1;
 

Modified: trunk/src/db/20021214.sql
===================================================================
--- trunk/src/db/20021214.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20021214.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,6 +5,6 @@
 frs_dlstats_filetotal_agg.downloads AS downloads
 FROM frs_filetype,frs_processor,
 frs_file LEFT JOIN frs_dlstats_filetotal_agg ON frs_dlstats_filetotal_agg.file_id=frs_file.file_id
-WHERE 
-frs_filetype.type_id=frs_file.type_id 
+WHERE
+frs_filetype.type_id=frs_file.type_id
 AND frs_processor.processor_id=frs_file.processor_id;

Modified: trunk/src/db/20021223-2.sql
===================================================================
--- trunk/src/db/20021223-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20021223-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -7,7 +7,7 @@
 --	Change project_task to delete on removal of project
 --
 
-ALTER TABLE project_task 
+ALTER TABLE project_task
 	ADD CONSTRAINT projecttask_groupprojectid_fk FOREIGN KEY (group_project_id)
 	REFERENCES project_group_list(group_project_id) ON DELETE CASCADE;
 
@@ -23,7 +23,7 @@
 CREATE SEQUENCE "project_categor_category_id_seq" ;
 CREATE TABLE project_category (
 category_id integer DEFAULT nextval('project_categor_category_id_seq'::text) NOT NULL,
-group_project_id int 
+group_project_id int
 	CONSTRAINT projcat_projgroupid_fk REFERENCES project_group_list(group_project_id) ON DELETE CASCADE,
 category_name text,
 	CONSTRAINT "project_category_pkey" Primary Key ("category_id")
@@ -41,19 +41,19 @@
 --
 --	Convenience view required for ProjectTask object
 --
-CREATE VIEW project_task_vw AS 
-SELECT project_task.*,project_category.category_name,project_status.status_name 
-FROM project_task 
-FULL JOIN project_category ON (project_category.category_id=project_task.category_id) 
+CREATE VIEW project_task_vw AS
+SELECT project_task.*,project_category.category_name,project_status.status_name
+FROM project_task
+FULL JOIN project_category ON (project_category.category_id=project_task.category_id)
 NATURAL JOIN project_status;
 
 --
 --	Each task can have multiple artifacts associated with it
 --
 CREATE TABLE project_task_artifact (
-project_task_id int 
+project_task_id int
 	CONSTRAINT projtaskartifact_projtaskid_fk REFERENCES project_task(project_task_id) ON DELETE CASCADE,
-artifact_id int 
+artifact_id int
 	CONSTRAINT projtaskartifact_artifactid_fk REFERENCES artifact(artifact_id) ON DELETE CASCADE);
 CREATE INDEX projecttaskartifact_projecttaskid ON project_task_artifact (project_task_id);
 CREATE INDEX projecttaskartifact_artifactid ON project_task_artifact (artifact_id);
@@ -62,9 +62,9 @@
 --	Relation to forums dedicated to this project
 --
 CREATE TABLE project_group_forum (
-group_project_id int 
+group_project_id int
 	CONSTRAINT projgroupforum_projgroupid_fk REFERENCES project_group_list(group_project_id) ON DELETE CASCADE,
-group_forum_id int 
+group_forum_id int
 	CONSTRAINT projgroupforum_groupforumid_fk REFERENCES forum_group_list(group_forum_id) ON DELETE CASCADE);
 CREATE INDEX projectgroupforum_groupprojectid ON project_group_forum(group_project_id);
 CREATE INDEX projectgroupforum_groupforumid ON project_group_forum(group_forum_id);
@@ -73,9 +73,9 @@
 --	Relation to a category of docs for this project
 --
 CREATE TABLE project_group_doccat (
-group_project_id int 
+group_project_id int
 	CONSTRAINT projgroupdoccat_projgroupid_fk REFERENCES project_group_list(group_project_id) ON DELETE CASCADE,
-doc_group_id int 
+doc_group_id int
 	CONSTRAINT projgroupdoccat_docgroupid_fk REFERENCES doc_groups(doc_group) ON DELETE CASCADE);
 CREATE INDEX projectgroupdoccat_groupprojectid ON project_group_forum(group_project_id);
 CREATE INDEX projectgroupdoccat_groupgroupid ON project_group_doccat(doc_group_id);
@@ -83,17 +83,17 @@
 --
 --
 --
-CREATE VIEW project_depend_vw AS 
+CREATE VIEW project_depend_vw AS
 	SELECT pt.project_task_id,pd.is_dependent_on_task_id,pt.end_date,pt.start_date
 	FROM project_task pt NATURAL JOIN project_dependencies pd;
 
-CREATE VIEW project_dependon_vw AS 
+CREATE VIEW project_dependon_vw AS
 	SELECT pd.project_task_id,pd.is_dependent_on_task_id,pt.end_date,pt.start_date
 	FROM project_task pt FULL JOIN project_dependencies pd ON (pd.is_dependent_on_task_id=pt.project_task_id);
 
 CREATE VIEW project_history_user_vw AS
-	SELECT users.realname,users.email,users.user_name,project_history.* 
-	FROM users,project_history 
+	SELECT users.realname,users.email,users.user_name,project_history.*
+	FROM users,project_history
 	WHERE project_history.mod_by=users.user_id;
 
 --
@@ -107,8 +107,8 @@
 postdate int NOT NULL);
 
 --BEGIN;
-INSERT INTO project_messages (project_task_id,body,posted_by,postdate) 
-	SELECT project_task_id,old_value,mod_by,mod_date 
+INSERT INTO project_messages (project_task_id,body,posted_by,postdate)
+	SELECT project_task_id,old_value,mod_by,mod_date
 	FROM project_history
 	WHERE field_name='details';
 

Modified: trunk/src/db/20030102-2.sql
===================================================================
--- trunk/src/db/20030102-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20030102-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -35,8 +35,8 @@
 	doc_groups.groupname AS group_name,
 	sl.name as language_name
 FROM doc_data d
-NATURAL JOIN doc_states 
-NATURAL JOIN doc_groups 
+NATURAL JOIN doc_states
+NATURAL JOIN doc_groups
 JOIN supported_languages sl ON (sl.language_id=d.language_id)
 JOIN users ON (users.user_id=d.created_by);
 

Modified: trunk/src/db/20030107.sql
===================================================================
--- trunk/src/db/20030107.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20030107.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,7 +5,7 @@
 
 CREATE VIEW project_task_vw AS
 SELECT project_task.*,project_category.category_name,project_status.status_name,users.user_name,users.realname
-FROM project_task 
+FROM project_task
 FULL JOIN project_category ON (project_category.category_id=project_task.category_id)
 FULL JOIN users ON (users.user_id=project_task.created_by)
 NATURAL JOIN project_status;

Modified: trunk/src/db/20030113-2.sql
===================================================================
--- trunk/src/db/20030113-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20030113-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -34,7 +34,7 @@
     scg.commits AS cvs_commits,
     scg.adds AS cvs_adds
 FROM stats_project_developers spd
-    LEFT JOIN stats_project sp USING (month,day,group_id) 
+    LEFT JOIN stats_project sp USING (month,day,group_id)
     LEFT JOIN stats_project_metric spm USING (month,day,group_id)
     LEFT JOIN stats_cvs_group scg USING (month,day,group_id)
     LEFT JOIN stats_agg_site_by_group sasbg USING (month,day,group_id)
@@ -73,7 +73,7 @@
     FROM stats_project_months
     GROUP BY group_id;
 
-CREATE VIEW stats_site_vw AS 
+CREATE VIEW stats_site_vw AS
 SELECT p.month,
     p.day,
     sspbd.site_page_views,

Modified: trunk/src/db/20030822.sql
===================================================================
--- trunk/src/db/20030822.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20030822.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -15,11 +15,11 @@
 		--
 		IF OLD.status_id=3 THEN
 			-- No need to decrement counters on old tracker
-		ELSE 
+		ELSE
 			IF OLD.status_id=2 THEN
 				UPDATE artifact_counts_agg SET count=count-1 \
 					WHERE group_artifact_id=OLD.group_artifact_id;
-			ELSE 
+			ELSE
 				IF OLD.status_id=1 THEN
 					UPDATE artifact_counts_agg SET count=count-1,open_count=open_count-1 \
 						WHERE group_artifact_id=OLD.group_artifact_id;
@@ -42,7 +42,7 @@
 		END IF;
 	ELSE
 		--
-		-- just need to evaluate the status flag and 
+		-- just need to evaluate the status flag and
 		-- increment/decrement the counter as necessary
 		--
 		IF NEW.status_id <> OLD.status_id THEN
@@ -50,7 +50,7 @@
 				IF OLD.status_id=2 THEN
 					UPDATE artifact_counts_agg SET open_count=open_count+1 \
 						WHERE group_artifact_id=NEW.group_artifact_id;
-				ELSE 
+				ELSE
 					IF OLD.status_id=3 THEN
 						UPDATE artifact_counts_agg SET open_count=open_count+1, count=count+1 \
 							WHERE group_artifact_id=NEW.group_artifact_id;
@@ -67,7 +67,7 @@
 								WHERE group_artifact_id=NEW.group_artifact_id;
 						END IF;
 					END IF;
-				ELSE 
+				ELSE
 					IF NEW.status_id = 3 THEN
 						IF OLD.status_id=2 THEN
 							UPDATE artifact_counts_agg SET count=count-1 \
@@ -81,10 +81,10 @@
 					END IF;
 				END IF;
 			END IF;
-		END IF;	
+		END IF;
 	END IF;
 	RETURN NEW;
 END;
 ' LANGUAGE 'plpgsql';
 
-CREATE TRIGGER "artifactgroup_update_trig" AFTER UPDATE ON "artifact"  FOR EACH ROW EXECUTE PROCEDURE "artifactgroup_update_agg" ();
\ No newline at end of file
+CREATE TRIGGER "artifactgroup_update_trig" AFTER UPDATE ON "artifact"  FOR EACH ROW EXECUTE PROCEDURE "artifactgroup_update_agg" ();

Modified: trunk/src/db/20040329.sql
===================================================================
--- trunk/src/db/20040329.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20040329.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,4 +1,4 @@
-begin; 
+begin;
 alter table user_group drop column dead1;
 alter table user_group drop column dead2;
 alter table user_group drop column dead3;

Modified: trunk/src/db/20040722.sql
===================================================================
--- trunk/src/db/20040722.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20040722.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -6,7 +6,7 @@
 SELECT setval('licenses_license_id_seq',100);
 INSERT INTO licenses (license_id,license_name) VALUES (100,'None');
 
--- 101 gpl 
+-- 101 gpl
 INSERT INTO licenses (license_name) VALUES ('GNU General Public License (GPL)');
 -- 102 lgpl
 INSERT INTO licenses (license_name) VALUES ('GNU Library Public License (LGPL)');

Modified: trunk/src/db/20040729.sql
===================================================================
--- trunk/src/db/20040729.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20040729.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -10,10 +10,10 @@
 INSERT INTO plugins (plugin_name,plugin_desc) (SELECT 'scmcvs','CVS Plugin' WHERE (SELECT count(*) FROM plugins WHERE plugin_name ='scmcvs')=0) ;
 
 -- Subscribe groups that use SCM to scmcvs plugin
-DELETE FROM group_plugin 
+DELETE FROM group_plugin
 	WHERE plugin_id=(SELECT plugin_id FROM plugins WHERE plugin_name='scmcvs');
 
-INSERT INTO group_plugin (group_id,plugin_id) 
-	(SELECT group_id,(SELECT plugin_id FROM plugins WHERE plugin_name='scmcvs') 
+INSERT INTO group_plugin (group_id,plugin_id)
+	(SELECT group_id,(SELECT plugin_id FROM plugins WHERE plugin_name='scmcvs')
 	FROM groups
 	WHERE status != 'P');

Modified: trunk/src/db/20040804.sql
===================================================================
--- trunk/src/db/20040804.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20040804.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -46,7 +46,7 @@
 CREATE UNIQUE INDEX projectperm_groupprojiduserid ON project_perm(group_project_id,user_id);
 
 DELETE FROM project_perm;
-INSERT INTO project_perm (group_project_id,user_id,perm_level) 
+INSERT INTO project_perm (group_project_id,user_id,perm_level)
 	SELECT project_group_list.group_project_id,user_group.user_id,user_group.project_flags
 	FROM user_group,project_group_list
 	WHERE project_group_list.group_id=user_group.group_id
@@ -67,7 +67,7 @@
 CREATE UNIQUE INDEX forumperm_groupforumiduserid ON forum_perm(group_forum_id,user_id);
 
 DELETE FROM forum_perm;
-INSERT INTO forum_perm (group_forum_id,user_id,perm_level) 
+INSERT INTO forum_perm (group_forum_id,user_id,perm_level)
 	SELECT forum_group_list.group_forum_id,user_group.user_id,user_group.forum_flags
 	FROM user_group,forum_group_list
 	WHERE forum_group_list.group_id=user_group.group_id
@@ -79,7 +79,7 @@
 --	Add to all trackers
 --
 update user_group set artifact_flags=0 where artifact_flags is null;
-INSERT INTO artifact_perm (group_artifact_id,user_id,perm_level) 
+INSERT INTO artifact_perm (group_artifact_id,user_id,perm_level)
 	SELECT artifact_group_list.group_artifact_id,user_group.user_id,user_group.artifact_flags
 	FROM user_group,artifact_group_list
 	WHERE artifact_group_list.group_id=user_group.group_id

Modified: trunk/src/db/20040826.sql
===================================================================
--- trunk/src/db/20040826.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20040826.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -6,7 +6,7 @@
 	Constraint "artifact_group_selection_box_list_pkey" Primary Key ("id")
 );
 SELECT setval ('"artifact_group_selection_box_list_id_seq"',100,true);
-	
+
 CREATE SEQUENCE "artifact_group_selection_box_options_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
 CREATE TABLE "artifact_group_selection_box_options" (
 	"id" integer DEFAULT nextval('"artifact_group_selection_box_options_id_seq"'::text)NOT NULL,
@@ -25,4 +25,4 @@
 	Constraint "artifact_extra_field_data_pkey" Primary Key ("id")
 );
 SELECT setval ('"artifact_extra_field_data_id_seq"',100,true);
-	
+

Modified: trunk/src/db/20040914.sql
===================================================================
--- trunk/src/db/20040914.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20040914.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -6,11 +6,11 @@
 
 CREATE VIEW project_group_list_vw AS SELECT * FROM project_group_list NATURAL JOIN project_counts_agg;
 
-INSERT INTO project_counts_agg 
-	SELECT group_project_id, 
-	(SELECT count(*) FROM project_task WHERE status_id != 3 AND 
+INSERT INTO project_counts_agg
+	SELECT group_project_id,
+	(SELECT count(*) FROM project_task WHERE status_id != 3 AND
 		project_task.group_project_id=project_group_list.group_project_id),
-	(SELECT count(*) FROM project_task WHERE status_id = 1 AND 
+	(SELECT count(*) FROM project_task WHERE status_id = 1 AND
 		project_task.group_project_id=project_group_list.group_project_id)
 	FROM project_group_list;
 

Modified: trunk/src/db/20041001.sql
===================================================================
--- trunk/src/db/20041001.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20041001.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -50,9 +50,9 @@
 CREATE VIEW nss_usergroups AS
 	SELECT group_id+10000 AS gid,
 		users.unix_uid+20000 AS uid
-	FROM user_group,users 
+	FROM user_group,users
 	WHERE user_group.user_id=users.user_id
-	UNION 
+	UNION
 	SELECT unix_uid+20000 AS gid,
 		unix_uid+20000 AS uid
 	FROM users

Modified: trunk/src/db/20041014.sql
===================================================================
--- trunk/src/db/20041014.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20041014.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,4 +1,4 @@
 -- Insert ultralite, only if it doesn't already exists
-INSERT INTO themes (dirname,fullname,enabled) (SELECT 'ultralite','Ultra-Lite Text-only Theme',true WHERE (SELECT COUNT(*) FROM themes WHERE dirname ='ultralite' ) = 0) ;	
+INSERT INTO themes (dirname,fullname,enabled) (SELECT 'ultralite','Ultra-Lite Text-only Theme',true WHERE (SELECT COUNT(*) FROM themes WHERE dirname ='ultralite' ) = 0) ;
 UPDATE themes SET fullname = 'Ultra-Lite Text-only Theme' where dirname = 'ultralite';
 

Modified: trunk/src/db/20041104.sql
===================================================================
--- trunk/src/db/20041104.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20041104.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -2,7 +2,7 @@
 ALTER TABLE GROUPS add column scm_box text;
 update groups set scm_box=scm_box_old;
 --
---	NOTE - scm_box needs to be a fully qualified domain 
+--	NOTE - scm_box needs to be a fully qualified domain
 --	name - probably requires a manual SQL update.
 --
 ALTER TABLE GROUPS drop column scm_box_old;

Modified: trunk/src/db/20050214-nss.sql
===================================================================
--- trunk/src/db/20050214-nss.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050214-nss.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,4 +1,4 @@
--- 
+--
 ALTER TABLE users  ADD COLUMN unix_gid INTEGER;
 ALTER TABLE users  ALTER COLUMN unix_gid SET DEFAULT 0;
 --
@@ -42,7 +42,7 @@
 	FROM groups;
 --
 -- Insert users group ids in nss_group table
--- 
+--
 INSERT INTO nss_groups (user_id,group_id,name, gid)
 	SELECT user_id,0,user_name, unix_gid
 	FROM users
@@ -69,7 +69,7 @@
 		users.user_name AS user_name,
 		groups.unix_group_name AS unix_group_name
 	FROM users,groups,user_group
-	WHERE 
+	WHERE
 		users.user_id=user_group.user_id
 	AND
 		groups.group_id=user_group.group_id
@@ -88,7 +88,7 @@
 		users.user_name AS user_name,
 		'scm_' || groups.unix_group_name AS unix_group_name
 	FROM users,groups,user_group
-	WHERE 
+	WHERE
 		users.user_id=user_group.user_id
 	AND
 		groups.group_id=user_group.group_id

Modified: trunk/src/db/20050224-2.sql
===================================================================
--- trunk/src/db/20050224-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050224-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -7,38 +7,38 @@
 CREATE INDEX artifactextrafieldlist_groupartid ON
 artifact_extra_field_list(group_artifact_id);
 
-CREATE INDEX docdata_groupid ON doc_data (group_id,doc_group); 
+CREATE INDEX docdata_groupid ON doc_data (group_id,doc_group);
 
 CREATE SEQUENCE artifact_extra_field_elements_element_id_seq;
-ALTER TABLE artifact_extra_field_elements ALTER COLUMN 
+ALTER TABLE artifact_extra_field_elements ALTER COLUMN
 	element_id SET DEFAULT nextval('artifact_extra_field_elements_element_id_seq');
 DROP SEQUENCE artifact_group_selection_box_options_id_seq;
 SELECT setval('artifact_extra_field_elements_element_id_seq',(SELECT
-max(element_id) FROM artifact_extra_field_elements)); 
+max(element_id) FROM artifact_extra_field_elements));
 
 CREATE SEQUENCE artifact_extra_field_data_data_id_seq;
-ALTER TABLE artifact_extra_field_data ALTER COLUMN 
+ALTER TABLE artifact_extra_field_data ALTER COLUMN
 	data_id SET DEFAULT nextval('artifact_extra_field_data_data_id_seq');
 SELECT setval('artifact_extra_field_data_data_id_seq',(SELECT
 max(data_id) FROM artifact_extra_field_data));
 DROP SEQUENCE artifact_extra_field_data_id_seq;
 
 CREATE SEQUENCE artifact_extra_field_list_extra_field_id_seq;
-ALTER TABLE artifact_extra_field_list ALTER COLUMN 
+ALTER TABLE artifact_extra_field_list ALTER COLUMN
 	extra_field_id SET DEFAULT nextval('artifact_extra_field_list_extra_field_id_seq');
 SELECT setval('artifact_extra_field_list_extra_field_id_seq',(SELECT
 max(extra_field_id) FROM artifact_extra_field_list));
 DROP SEQUENCE artifact_group_selection_box_list_id_seq;
 
 
-ALTER TABLE artifact_counts_agg ADD CONSTRAINT 
+ALTER TABLE artifact_counts_agg ADD CONSTRAINT
 	artifact_counts_agg_pkey primary key (group_artifact_id);
 DROP INDEX artifactcountsagg_groupartid;
 
 
-ALTER TABLE artifact_extra_field_elements DROP CONSTRAINT 
+ALTER TABLE artifact_extra_field_elements DROP CONSTRAINT
 	artifact_group_selection_box_options_pkey;
-ALTER TABLE artifact_extra_field_elements ADD CONSTRAINT 
+ALTER TABLE artifact_extra_field_elements ADD CONSTRAINT
 	artifact_extra_field_elements_pkey primary key (element_id);
 
 
@@ -99,12 +99,12 @@
 -- TODO DROP unnecessary sequence/id
 --
 ALTER TABLE forum_saved_place DROP CONSTRAINT forum_saved_place_pkey;
-ALTER TABLE forum_saved_place ADD CONSTRAINT 
+ALTER TABLE forum_saved_place ADD CONSTRAINT
 	forum_saved_place_pkey PRIMARY KEY (user_id,forum_id);
 
 DROP INDEX frsdlfiletotal_fileid;
 ALTER TABLE frs_dlstats_filetotal_agg DROP CONSTRAINT frs_dlstats_filetotal_agg_pkey;
-ALTER TABLE frs_dlstats_filetotal_agg ADD CONSTRAINT 
+ALTER TABLE frs_dlstats_filetotal_agg ADD CONSTRAINT
 	frs_dlstats_filetotal_agg_pkey PRIMARY KEY (file_id);
 
 --
@@ -133,12 +133,12 @@
 SELECT * FROM (SELECT project_task_id,assigned_to_id,count(*) AS count FROM project_assigned_to
 	GROUP BY project_task_id,assigned_to_id ORDER BY count) ta WHERE ta.count > 1
 	AND ta.project_task_id=project_assigned_to.project_task_id);
-ALTER TABLE project_assigned_to ADD CONSTRAINT 
+ALTER TABLE project_assigned_to ADD CONSTRAINT
 	project_assigned_to_pkey PRIMARY KEY (project_task_id,assigned_to_id);
-CREATE INDEX projectassigned_assignedtotaskid ON 
+CREATE INDEX projectassigned_assignedtotaskid ON
 	project_assigned_to(assigned_to_id,project_task_id);
 
-ALTER TABLE project_counts_agg ADD CONSTRAINT 
+ALTER TABLE project_counts_agg ADD CONSTRAINT
 	project_counts_agg_pkey PRIMARY KEY (group_project_id);
 
 --
@@ -150,14 +150,14 @@
 ALTER TABLE project_dependencies ALTER COLUMN link_type SET DEFAULT 'FS';
 --mop up duplicate ids
 DELETE FROM project_dependencies WHERE EXISTS (
-SELECT * FROM (SELECT project_task_id,is_dependent_on_task_id,count(*) AS count 
+SELECT * FROM (SELECT project_task_id,is_dependent_on_task_id,count(*) AS count
 	FROM project_dependencies
 	GROUP BY project_task_id,is_dependent_on_task_id ORDER BY count) ta WHERE ta.count > 1
 	AND ta.project_task_id=project_dependencies.project_task_id
 	AND ta.is_dependent_on_task_id=project_dependencies.is_dependent_on_task_id);
-ALTER TABLE project_dependencies ADD CONSTRAINT project_dependencies_pkey 
+ALTER TABLE project_dependencies ADD CONSTRAINT project_dependencies_pkey
 	PRIMARY KEY(project_task_id,is_dependent_on_task_id);
-CREATE INDEX projectdep_isdepon_projtaskid ON 
+CREATE INDEX projectdep_isdepon_projtaskid ON
 	project_dependencies(is_dependent_on_task_id,project_task_id);
 
 DROP TABLE project_group_doccat;
@@ -185,13 +185,13 @@
 DROP INDEX projecttaskartifact_artifactid;
 ALTER TABLE project_task_artifact ALTER project_task_id SET NOT NULL;
 ALTER TABLE project_task_artifact ALTER artifact_id SET NOT NULL;
-ALTER TABLE project_task_artifact ADD CONSTRAINT 
+ALTER TABLE project_task_artifact ADD CONSTRAINT
 	project_task_artifact_pkey PRIMARY KEY (project_task_id,artifact_id);
-CREATE INDEX projecttaskartifact_artidprojtaskid ON 
+CREATE INDEX projecttaskartifact_artidprojtaskid ON
 	project_task_artifact(artifact_id,project_task_id);
 
 DROP INDEX projecttaskexternal_projtaskid;
-ALTER TABLE project_task_external_order ADD CONSTRAINT 
+ALTER TABLE project_task_external_order ADD CONSTRAINT
 	roject_task_external_order_pkey PRIMARY KEY (project_task_id);
 
 --UNKNOWN IF CORRECT: project_weekly_metric
@@ -203,14 +203,14 @@
 ALTER TABLE role ADD CONSTRAINT role_role_id_pkey PRIMARY KEY (role_id);
 ALTER TABLE user_group ADD CONSTRAINT usergroup_roleid
         FOREIGN KEY (role_id) REFERENCES role(role_id) MATCH FULL;
-ALTER TABLE role_setting ADD CONSTRAINT rolesetting_roleroleid 
+ALTER TABLE role_setting ADD CONSTRAINT rolesetting_roleroleid
 	FOREIGN KEY (role_id) REFERENCES role(role_id) ON DELETE CASCADE;
 
 DROP INDEX rolesetting_roleidsectionid;
-ALTER TABLE role_setting ADD CONSTRAINT role_setting_pkey 
+ALTER TABLE role_setting ADD CONSTRAINT role_setting_pkey
 	PRIMARY KEY (role_id,section_name,ref_id);
 
---skills_data ignored - to be dropped 
+--skills_data ignored - to be dropped
 --stats tables ignored - to be dropped
 
 CREATE UNIQUE INDEX supportedlanguage_code ON supported_languages(language_code);
@@ -237,7 +237,7 @@
 DROP INDEX trove_group_link_cat_id;
 DROP INDEX trove_group_link_group_id;
 CREATE INDEX trovegrouplink_groupidcatid ON trove_group_link(group_id,trove_cat_id);
-ALTER TABLE trove_group_link ADD CONSTRAINT 
+ALTER TABLE trove_group_link ADD CONSTRAINT
 	trove_group_link_pkey PRIMARY KEY(trove_cat_id,group_id,trove_cat_version);
 
 --
@@ -255,9 +255,9 @@
 ALTER TABLE user_diary_monitor DROP CONSTRAINT user_diary_monitor_pkey;
 DROP INDEX user_diary_monitor_monitored_us;
 DROP INDEX user_diary_monitor_user;
-ALTER TABLE user_diary_monitor ADD CONSTRAINT 
+ALTER TABLE user_diary_monitor ADD CONSTRAINT
 	user_diary_monitor_pkey PRIMARY KEY (monitored_user,user_id);
-CREATE INDEX userdiarymon_useridmonitoredid ON 
+CREATE INDEX userdiarymon_useridmonitoredid ON
 	user_diary_monitor(user_id,monitored_user);
 
 --
@@ -277,7 +277,7 @@
 
 CREATE INDEX usermetrichistory_useridmonthday ON user_metric_history(user_id,month,day);
 DROP INDEX user_metric_history_date_userid;
-ALTER TABLE user_metric_history ADD CONSTRAINT 
+ALTER TABLE user_metric_history ADD CONSTRAINT
 	user_metric_history_pkey PRIMARY KEY (month,day,user_id);
 
 --
@@ -292,7 +292,7 @@
 DROP INDEX user_pref_user_id;
 ALTER TABLE user_preferences ALTER user_id SET NOT NULL;
 ALTER TABLE user_preferences ALTER preference_name SET NOT NULL;
-ALTER TABLE user_preferences ADD CONSTRAINT 
+ALTER TABLE user_preferences ADD CONSTRAINT
 	user_preferences_pkey PRIMARY KEY (user_id,preference_name);
 
 DROP INDEX user_ratings_rated_by;

Modified: trunk/src/db/20050225-nsssetup.sql
===================================================================
--- trunk/src/db/20050225-nsssetup.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050225-nsssetup.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -39,7 +39,7 @@
 	FROM groups;
 --
 -- Insert users group ids in nss_group table
--- 
+--
 INSERT INTO nss_groups (user_id,group_id,name, gid)
 	SELECT user_id,0,user_name, unix_gid
 	FROM users
@@ -65,7 +65,7 @@
 		users.user_name AS user_name,
 		groups.unix_group_name AS unix_group_name
 	FROM users,groups,user_group
-	WHERE 
+	WHERE
 		users.user_id=user_group.user_id
 	AND
 		groups.group_id=user_group.group_id
@@ -84,7 +84,7 @@
 		users.user_name AS user_name,
 		'scm_' || groups.unix_group_name AS unix_group_name
 	FROM users,groups,user_group
-	WHERE 
+	WHERE
 		users.user_id=user_group.user_id
 	AND
 		groups.group_id=user_group.group_id

Modified: trunk/src/db/20050311.sql
===================================================================
--- trunk/src/db/20050311.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050311.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -4,10 +4,10 @@
 		count = (artifact_counts_agg.count - 1),
 		open_count = (CASE WHEN old.status_id=1 THEN artifact_counts_agg.open_count - 1 ELSE artifact_counts_agg.open_count END)
 		WHERE (artifact_counts_agg.group_artifact_id = old.group_artifact_id);
-		
+
 CREATE RULE projecttask_delete_agg AS
 	ON DELETE TO project_task DO
 	UPDATE project_counts_agg SET
 		count = (project_counts_agg.count - 1),
 		open_count = (CASE WHEN old.status_id=1 THEN project_counts_agg.open_count - 1 ELSE project_counts_agg.open_count END)
-		WHERE (project_counts_agg.group_project_id = old.group_project_id);
\ No newline at end of file
+		WHERE (project_counts_agg.group_project_id = old.group_project_id);

Modified: trunk/src/db/20050315.sql
===================================================================
--- trunk/src/db/20050315.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050315.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,7 +5,7 @@
 );
 
 INSERT INTO deleted_mailing_lists (mailing_list_name,
-delete_date,isdeleted) SELECT 
+delete_date,isdeleted) SELECT
 list_name,(EXTRACT(EPOCH FROM now())::integer),0
 FROM mail_group_list WHERE status=9;
 

Modified: trunk/src/db/20050325-2.sql
===================================================================
--- trunk/src/db/20050325-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050325-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -17,7 +17,7 @@
 
 CREATE TABLE artifact_query (
 	artifact_query_id SERIAL NOT NULL,
-	group_artifact_id integer NOT NULL 
+	group_artifact_id integer NOT NULL
 		CONSTRAINT artquery_groupartid_fk REFERENCES artifact_group_list(group_artifact_id) ON DELETE CASCADE,
 	user_id integer NOT NULL,
 	query_name text NOT NULL,
@@ -25,7 +25,7 @@
 );
 
 CREATE TABLE artifact_query_fields (
-	artifact_query_id integer NOT NULL 
+	artifact_query_id integer NOT NULL
 		CONSTRAINT artqueryelmnt_artqueryid REFERENCES artifact_query(artifact_query_id) ON DELETE CASCADE,
 	query_field_type text NOT NULL,
 	query_field_id int NOT NULL,

Modified: trunk/src/db/20050628.sql
===================================================================
--- trunk/src/db/20050628.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050628.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,2 +1,2 @@
-INSERT INTO groups (group_name, is_public, status, unix_group_name, short_description, register_time) VALUES 
+INSERT INTO groups (group_name, is_public, status, unix_group_name, short_description, register_time) VALUES
 ('Template Project',1,'P','template','Project to house templates used to build other projects', extract(EPOCH FROM now()));

Modified: trunk/src/db/20050804-1.sql
===================================================================
--- trunk/src/db/20050804-1.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050804-1.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,10 +5,10 @@
 
 DROP VIEW docdata_vw;
 
-CREATE VIEW docdata_vw AS 
+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.language_id, d.filename, d.filetype,  d.filesize, doc_states.name AS state_name, doc_groups.groupname AS group_name, sl.name AS language_name
    FROM doc_data d
 NATURAL JOIN doc_states
 NATURAL JOIN doc_groups
    JOIN supported_languages sl ON sl.language_id = d.language_id
-   JOIN users ON users.user_id = d.created_by;
\ No newline at end of file
+   JOIN users ON users.user_id = d.created_by;

Modified: trunk/src/db/20050822-2.sql
===================================================================
--- trunk/src/db/20050822-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050822-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -10,7 +10,7 @@
 
 
 --
--- Name: forum_attachment; Type: TABLE; Schema: public; Owner: gforge; Tablespace: 
+-- Name: forum_attachment; Type: TABLE; Schema: public; Owner: gforge; Tablespace:
 --
 
 
@@ -30,7 +30,7 @@
 
 
 --
--- Name: filehash; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace: 
+-- Name: filehash; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace:
 --
 
 ALTER TABLE ONLY forum_attachment
@@ -39,7 +39,7 @@
 
 
 --
--- Name: forum_attachment_key; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace: 
+-- Name: forum_attachment_key; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace:
 --
 
 ALTER TABLE ONLY forum_attachment
@@ -48,7 +48,7 @@
 
 
 --
--- Name: msg_id; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace: 
+-- Name: msg_id; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace:
 --
 
 ALTER TABLE ONLY forum_attachment
@@ -62,7 +62,7 @@
 
 
 --
--- Name: forum_attachmenttype; Type: TABLE; Schema: public; Owner: gforge; Tablespace: 
+-- Name: forum_attachmenttype; Type: TABLE; Schema: public; Owner: gforge; Tablespace:
 --
 
 
@@ -96,7 +96,7 @@
 
 
 --
--- Name: forum_attachmenttype_key; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace: 
+-- Name: forum_attachmenttype_key; Type: CONSTRAINT; Schema: public; Owner: gforge; Tablespace:
 --
 
 ALTER TABLE ONLY forum_attachmenttype

Modified: trunk/src/db/20050823.sql
===================================================================
--- trunk/src/db/20050823.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050823.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -7,5 +7,5 @@
 alter table forum_attachmenttype drop constraint forum_attachmenttype_key;
 
 
-ALTER TABLE ONLY forum_attachmenttype 
-	ADD CONSTRAINT forum_attachmenttype_key PRIMARY KEY (extension,group_id);
\ No newline at end of file
+ALTER TABLE ONLY forum_attachmenttype
+	ADD CONSTRAINT forum_attachmenttype_key PRIMARY KEY (extension,group_id);

Modified: trunk/src/db/20050831.sql
===================================================================
--- trunk/src/db/20050831.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050831.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -8,7 +8,7 @@
 
 CREATE VIEW forum_group_list_vw AS
     SELECT forum_group_list.group_forum_id, forum_group_list.group_id, forum_group_list.forum_name, forum_group_list.is_public, forum_group_list.description, forum_group_list.allow_anonymous, forum_group_list.send_all_posts_to, forum_group_list.moderation_level, forum_agg_msg_count.count AS total, (SELECT max(forum.post_date) AS recent FROM forum WHERE (forum.group_forum_id = forum_group_list.group_forum_id)) AS recent, (SELECT count(*) AS count FROM (SELECT forum.thread_id FROM forum WHERE (forum.group_forum_id = forum_group_list.group_forum_id) GROUP BY forum.thread_id) tmp) AS threads FROM (forum_group_list LEFT JOIN forum_agg_msg_count USING (group_forum_id));
-    
+
 DROP VIEW forum_user_vw;
 
 CREATE VIEW forum_user_vw AS
@@ -52,13 +52,13 @@
 
 ALTER TABLE ONLY forum_pending_attachment
     ADD CONSTRAINT forum_pending_attachment_msg_id_fkey FOREIGN KEY (msg_id) REFERENCES forum_pending_messages(msg_id) ON DELETE CASCADE;
-    
+
 ALTER TABLE ONLY forum_pending_attachment
     ADD CONSTRAINT forum_pending_attachment_userid_fkey FOREIGN KEY (userid) REFERENCES users(user_id) ON DELETE SET DEFAULT;
-    
+
 CREATE VIEW forum_pending_user_vw AS
-    SELECT forum_pending_messages.msg_id, forum_pending_messages.group_forum_id, forum_pending_messages.posted_by, forum_pending_messages.subject, 
-    forum_pending_messages.body, forum_pending_messages.post_date, forum_pending_messages.is_followup_to, forum_pending_messages.thread_id, forum_pending_messages.has_followups, 
+    SELECT forum_pending_messages.msg_id, forum_pending_messages.group_forum_id, forum_pending_messages.posted_by, forum_pending_messages.subject,
+    forum_pending_messages.body, forum_pending_messages.post_date, forum_pending_messages.is_followup_to, forum_pending_messages.thread_id, forum_pending_messages.has_followups,
     forum_pending_messages.most_recent_date, forum_pending_messages.bbcode_uid, users.user_name, users.realname FROM forum_pending_messages, users WHERE (forum_pending_messages.posted_by = users.user_id);
 
 

Modified: trunk/src/db/20050906.sql
===================================================================
--- trunk/src/db/20050906.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20050906.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -4,13 +4,13 @@
 -- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING
 --
 -- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING
--- 
+--
 -- This SQL file is going to delete every mailing_list from the db that is not associated with
 -- an existing group. Please check that this does really is not deleting sensible information
 
 DELETE FROM mail_group_list WHERE group_id NOT IN (SELECT group_id FROM groups);
 
 ALTER TABLE ONLY mail_group_list
-   	ADD CONSTRAINT mail_group_list_group_id_fkey 
+   	ADD CONSTRAINT mail_group_list_group_id_fkey
 	FOREIGN KEY (group_id) REFERENCES groups(group_id) ON DELETE CASCADE;
 

Modified: trunk/src/db/20051003.sql
===================================================================
--- trunk/src/db/20051003.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20051003.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -2,4 +2,4 @@
 UPDATE plugin_cvstracker_data_master SET cvs_date_int=extract(epoch from cvs_date);
 ALTER TABLE plugin_cvstracker_data_master DROP COLUMN cvs_date;
 ALTER TABLE plugin_cvstracker_data_master RENAME COLUMN cvs_date_int TO cvs_date;
-ALTER TABLE plugin_cvstracker_data_master ALTER COLUMN cvs_date SET NOT NULL;
\ No newline at end of file
+ALTER TABLE plugin_cvstracker_data_master ALTER COLUMN cvs_date SET NOT NULL;

Modified: trunk/src/db/20060113.sql
===================================================================
--- trunk/src/db/20060113.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20060113.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,4 +5,4 @@
 alter table forum_pending_messages drop column bbcode_uid cascade;
 
 CREATE VIEW forum_pending_user_vw AS
-    SELECT forum_pending_messages.msg_id, forum_pending_messages.group_forum_id, forum_pending_messages.posted_by, forum_pending_messages.subject, forum_pending_messages.body, forum_pending_messages.post_date, forum_pending_messages.is_followup_to, forum_pending_messages.thread_id, forum_pending_messages.has_followups, forum_pending_messages.most_recent_date, users.user_name, users.realname FROM forum_pending_messages, users WHERE (forum_pending_messages.posted_by = users.user_id);
\ No newline at end of file
+    SELECT forum_pending_messages.msg_id, forum_pending_messages.group_forum_id, forum_pending_messages.posted_by, forum_pending_messages.subject, forum_pending_messages.body, forum_pending_messages.post_date, forum_pending_messages.is_followup_to, forum_pending_messages.thread_id, forum_pending_messages.has_followups, forum_pending_messages.most_recent_date, users.user_name, users.realname FROM forum_pending_messages, users WHERE (forum_pending_messages.posted_by = users.user_id);

Modified: trunk/src/db/20060214.sql
===================================================================
--- trunk/src/db/20060214.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20060214.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,4 +1,4 @@
-DELETE from artifact_extra_field_data where extra_field_id NOT IN 
-(select aefl.extra_field_id FROM artifact_extra_field_list aefl, artifact a 
+DELETE from artifact_extra_field_data where extra_field_id NOT IN
+(select aefl.extra_field_id FROM artifact_extra_field_list aefl, artifact a
 WHERE a.group_artifact_id=aefl.group_artifact_id and a.artifact_id=artifact_extra_field_data.artifact_id);
 

Modified: trunk/src/db/20060216-2-debian-nocommit.sql
===================================================================
--- trunk/src/db/20060216-2-debian-nocommit.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20060216-2-debian-nocommit.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,29 +1,29 @@
 
-CREATE VIEW activity_vw AS 
-SELECT 
+CREATE VIEW activity_vw AS
+SELECT
 agl.group_id, 'trackeropen'::text AS section, agl.group_artifact_id AS ref_id,
 a.artifact_id as subref_id, a.summary as description, a.open_date AS activity_date, u.user_id, u.user_name, u.realname
-FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), 
+FROM artifact_group_list agl JOIN artifact a using (group_artifact_id),
 users u WHERE u.user_id=a.submitted_by
 UNION
-SELECT 
+SELECT
 agl.group_id, 'trackerclose'::text AS section, agl.group_artifact_id AS ref_id,
 a.artifact_id as subref_id, a.summary as description, a.close_date AS activity_date, u.user_id, u.user_name, u.realname
-FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), users u WHERE u.user_id=a.assigned_to 
---actually should join against  
+FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), users u WHERE u.user_id=a.assigned_to
+--actually should join against
 AND a.close_date > 0
 UNION
-SELECT 
-frsp.group_id, 'frsrelease'::text as section,frsp.package_id as ref_id, 
-frsr.release_id as subref_id, frsr.name AS description, frsr.release_date AS activity_date, 
+SELECT
+frsp.group_id, 'frsrelease'::text as section,frsp.package_id as ref_id,
+frsr.release_id as subref_id, frsr.name AS description, frsr.release_date AS activity_date,
 u.user_id, u.user_name, u.realname FROM frs_package frsp JOIN frs_release frsr USING (package_id), users u WHERE
-u.user_id=frsr.released_by 
+u.user_id=frsr.released_by
 UNION
-SELECT 
-fgl.group_id, 'forumpost'::text as section,fgl.group_forum_id as ref_id, forum.msg_id 
-as subref_id, forum.subject AS description, forum.post_date AS activity_date, u.user_id, 
+SELECT
+fgl.group_id, 'forumpost'::text as section,fgl.group_forum_id as ref_id, forum.msg_id
+as subref_id, forum.subject AS description, forum.post_date AS activity_date, u.user_id,
 u.user_name, u.realname FROM forum_group_list fgl JOIN forum USING (group_forum_id), users u WHERE
-u.user_id=forum.posted_by 
+u.user_id=forum.posted_by
 ;
 
 CREATE TABLE group_activity_monitor (
@@ -34,5 +34,5 @@
 );
 
 CREATE RULE groupactivity_userdelete_rule AS ON UPDATE TO USERS DO
-	DELETE FROM group_activity_monitor WHERE user_id =(CASE WHEN NEW.status='D' 
+	DELETE FROM group_activity_monitor WHERE user_id =(CASE WHEN NEW.status='D'
 	THEN NEW.user_id ELSE 0 END);

Modified: trunk/src/db/20060216-2.sql
===================================================================
--- trunk/src/db/20060216-2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20060216-2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,37 +1,37 @@
-CREATE VIEW activity_vw AS 
-SELECT 
+CREATE VIEW activity_vw AS
+SELECT
 agl.group_id, 'trackeropen'::text AS section, agl.group_artifact_id AS ref_id,
 a.artifact_id as subref_id, a.summary as description, a.open_date AS activity_date, u.user_id, u.user_name, u.realname
-FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), 
+FROM artifact_group_list agl JOIN artifact a using (group_artifact_id),
 users u WHERE u.user_id=a.submitted_by
 UNION
-SELECT 
+SELECT
 agl.group_id, 'trackerclose'::text AS section, agl.group_artifact_id AS ref_id,
 a.artifact_id as subref_id, a.summary as description, a.close_date AS activity_date, u.user_id, u.user_name, u.realname
-FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), users u WHERE u.user_id=a.assigned_to 
---actually should join against  
+FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), users u WHERE u.user_id=a.assigned_to
+--actually should join against
 AND a.close_date > 0
 UNION
-SELECT 
+SELECT
 agl.group_id, 'commit'::text AS section, agl.group_artifact_id AS ref_id,
-a.artifact_id as subref_id, pcdm.log_text AS description, pcdm.cvs_date AS activity_date, u.user_id, u.user_name, u.realname 
-FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), 
-plugin_cvstracker_data_master pcdm, plugin_cvstracker_data_artifact pcda, users u 
-WHERE pcdm.holder_id=pcda.id 
+a.artifact_id as subref_id, pcdm.log_text AS description, pcdm.cvs_date AS activity_date, u.user_id, u.user_name, u.realname
+FROM artifact_group_list agl JOIN artifact a using (group_artifact_id),
+plugin_cvstracker_data_master pcdm, plugin_cvstracker_data_artifact pcda, users u
+WHERE pcdm.holder_id=pcda.id
 AND pcda.group_artifact_id=a.artifact_id
 AND u.user_name=pcdm.author
 UNION
-SELECT 
-frsp.group_id, 'frsrelease'::text as section,frsp.package_id as ref_id, 
-frsr.release_id as subref_id, frsr.name AS description, frsr.release_date AS activity_date, 
+SELECT
+frsp.group_id, 'frsrelease'::text as section,frsp.package_id as ref_id,
+frsr.release_id as subref_id, frsr.name AS description, frsr.release_date AS activity_date,
 u.user_id, u.user_name, u.realname FROM frs_package frsp JOIN frs_release frsr USING (package_id), users u WHERE
-u.user_id=frsr.released_by 
+u.user_id=frsr.released_by
 UNION
-SELECT 
-fgl.group_id, 'forumpost'::text as section,fgl.group_forum_id as ref_id, forum.msg_id 
-as subref_id, forum.subject AS description, forum.post_date AS activity_date, u.user_id, 
+SELECT
+fgl.group_id, 'forumpost'::text as section,fgl.group_forum_id as ref_id, forum.msg_id
+as subref_id, forum.subject AS description, forum.post_date AS activity_date, u.user_id,
 u.user_name, u.realname FROM forum_group_list fgl JOIN forum USING (group_forum_id), users u WHERE
-u.user_id=forum.posted_by 
+u.user_id=forum.posted_by
 ;
 
 CREATE TABLE group_activity_monitor (
@@ -42,5 +42,5 @@
 );
 
 CREATE RULE groupactivity_userdelete_rule AS ON UPDATE TO USERS DO
-	DELETE FROM group_activity_monitor WHERE user_id =(CASE WHEN NEW.status='D' 
+	DELETE FROM group_activity_monitor WHERE user_id =(CASE WHEN NEW.status='D'
 	THEN NEW.user_id ELSE 0 END);

Modified: trunk/src/db/20060401.sql
===================================================================
--- trunk/src/db/20060401.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20060401.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,14 +1,14 @@
 Begin;
 
-UPDATE USERS SET language=1 WHERE language IN 
-	(select language_id FROM supported_languages 
-	WHERE classname in 
+UPDATE USERS SET language=1 WHERE language IN
+	(select language_id FROM supported_languages
+	WHERE classname in
 	('Esperanto','Greek','Hebrew','Indonesian','Latin','Norwegian','Polish','Portuguese','Thai.tab'));
 DELETE FROM doc_data where language_id IN (select language_id FROM supported_languages
         WHERE classname in
         ('Esperanto','Greek','Hebrew','Indonesian','Latin','Norwegian','Polish','Portuguese','Thai.tab'));
 DELETE FROM supported_languages
-	WHERE classname in 
+	WHERE classname in
 	('Esperanto','Greek','Hebrew','Indonesian','Latin','Norwegian','Polish','Portuguese','Thai.tab');
 
 Commit;

Modified: trunk/src/db/20090327_create_table_project_tags.sql
===================================================================
--- trunk/src/db/20090327_create_table_project_tags.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20090327_create_table_project_tags.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -4,6 +4,6 @@
 
 CREATE TABLE project_tags
 (
-   group_id integer NOT NULL, 
+   group_id integer NOT NULL,
    name text NOT NULL
 ) WITH OIDS;

Modified: trunk/src/db/20090507-add_artifact_workflow.sql
===================================================================
--- trunk/src/db/20090507-add_artifact_workflow.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20090507-add_artifact_workflow.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -26,10 +26,10 @@
   from_value_id integer NOT NULL,
   to_value_id integer NOT NULL,
   CONSTRAINT artifact_workflow_event_pkey PRIMARY KEY (event_id),
-  CONSTRAINT artifact_workflow_event_group_artifact_id_fkey FOREIGN KEY (group_artifact_id, field_id) 
+  CONSTRAINT artifact_workflow_event_group_artifact_id_fkey FOREIGN KEY (group_artifact_id, field_id)
 	REFERENCES artifact_extra_field_list (group_artifact_id, extra_field_id) MATCH SIMPLE
 	ON UPDATE NO ACTION ON DELETE CASCADE
-) 
+)
 WITH OIDS;
 -- ALTER TABLE artifact_workflow_event OWNER TO gforge;
 
@@ -67,7 +67,7 @@
   CONSTRAINT artifact_workflow_notify_event_id_fkey FOREIGN KEY (event_id)
       REFERENCES artifact_workflow_event (event_id) MATCH SIMPLE
       ON UPDATE NO ACTION ON DELETE CASCADE
-) 
+)
 WITH OIDS;
 -- ALTER TABLE artifact_workflow_notify OWNER TO gforge;
 

Modified: trunk/src/db/20090507-add_element_pos.sql
===================================================================
--- trunk/src/db/20090507-add_element_pos.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20090507-add_element_pos.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,7 +1,7 @@
 --
 -- Add element_pos column in artifact_extra_field_elements
 -- for AC_FD0424
--- 
+--
 -- Roger Guignard May-2008
 --
 ALTER TABLE "artifact_extra_field_elements" ADD COLUMN "element_pos" integer;

Modified: trunk/src/db/20090507-browse_list.sql
===================================================================
--- trunk/src/db/20090507-browse_list.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20090507-browse_list.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,25 +1,25 @@
 --
 -- Add the browse_list field in the artifact_group_list
 --
--- This is to support the customization of columns in the 
+-- This is to support the customization of columns in the
 -- browse list.
--- 
+--
 -- Alain Peyrat Sep-2006
 
 DROP VIEW "artifact_group_list_vw";
 
 ALTER TABLE "artifact_group_list" ADD COLUMN "browse_list" text;
-UPDATE "artifact_group_list" 
+UPDATE "artifact_group_list"
   SET browse_list='summary,open_date,assigned_to,submitted_by';
 ALTER TABLE "artifact_group_list" ALTER COLUMN browse_list SET NOT NULL;
 ALTER TABLE "artifact_group_list" ALTER COLUMN browse_list
   SET DEFAULT 'summary,open_date,assigned_to,submitted_by';
 
-CREATE VIEW "artifact_group_list_vw" AS 
+CREATE VIEW "artifact_group_list_vw" AS
   SELECT agl.group_artifact_id, agl.group_id, agl.name, agl.description,
     agl.is_public, agl.allow_anon, agl.email_all_updates, agl.email_address,
-    agl.due_period, agl.submit_instructions, agl.browse_instructions, 
-    agl.browse_list, agl.datatype, agl.status_timeout, agl.custom_status_field, 
+    agl.due_period, agl.submit_instructions, agl.browse_instructions,
+    agl.browse_list, agl.datatype, agl.status_timeout, agl.custom_status_field,
     agl.custom_renderer, aca.count, aca.open_count
   FROM artifact_group_list agl
   LEFT JOIN artifact_counts_agg aca USING (group_artifact_id);

Modified: trunk/src/db/20100506-add-widgets.sql
===================================================================
--- trunk/src/db/20100506-add-widgets.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20100506-add-widgets.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -10,7 +10,7 @@
   description text NOT NULL,
   scope char(1) NOT NULL default 'S',
   PRIMARY KEY(id)
-); 
+);
 
 --
 -- Contenu de la table 'layouts'
@@ -58,7 +58,7 @@
   layout_id INTEGER  NOT NULL default '0',
   rank INTEGER NOT NULL default '0',
   PRIMARY KEY  (id)
-); 
+);
 
 --
 -- Contenu de la table 'layouts_rows'

Modified: trunk/src/db/20100518-pfo-rbac.sql
===================================================================
--- trunk/src/db/20100518-pfo-rbac.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20100518-pfo-rbac.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -151,7 +151,7 @@
 		nref = opid ;
 		nval = pfo_rbac_permissions_from_old (r.role_id, nsec, nref) ;
 		PERFORM insert_pfo_role_setting (nrid, nsec, nref, nval) ;
-		
+
 	END LOOP ;
 
 END ;
@@ -194,13 +194,13 @@
 			PERFORM insert_pfo_role_setting (1, 'tracker', t.group_artifact_id, 1) ;
 			PERFORM insert_pfo_role_setting (2, 'tracker', t.group_artifact_id, 1) ;
 		END LOOP ;
-		
+
 		FOR p IN SELECT * FROM project_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			PERFORM insert_pfo_role_setting (1, 'pm', p.group_project_id, 1) ;
 			PERFORM insert_pfo_role_setting (2, 'pm', p.group_project_id, 1) ;
 		END LOOP ;
-		
+
 		FOR f IN SELECT * FROM forum_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			IF f.allow_anonymous = 1 THEN
@@ -217,7 +217,7 @@
 			   PERFORM insert_pfo_role_setting (2, 'forum', f.group_forum_id, 2) ;
 			END IF ;
 		END LOOP ;
-		
+
 	END LOOP ;
 
 END ;
@@ -254,7 +254,7 @@
 		   IF nsec = 'project_admin' AND nref = opid THEN
 		      RETURN 1 ;
 		   END IF ;
-		   
+
 		   IF nsec = 'forge_admin' AND nref = -1 AND opid = mastergroupid THEN
 		      RETURN 1 ;
 		   END IF ;

Modified: trunk/src/db/20100524-pfo-rbac.sql
===================================================================
--- trunk/src/db/20100524-pfo-rbac.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20100524-pfo-rbac.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -29,7 +29,7 @@
 		   IF nsec = 'project_admin' AND nref = opid THEN
 		      RETURN 1 ;
 		   END IF ;
-		   
+
 		   IF nsec = 'forge_admin' AND nref = -1 AND opid = mastergroupid THEN
 		      RETURN 1 ;
 		   END IF ;
@@ -202,13 +202,13 @@
 
 			PERFORM insert_pfo_role_setting (2, 'tracker', t.group_artifact_id, 1) ;
 		END LOOP ;
-		
+
 		FOR p IN SELECT * FROM project_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			PERFORM insert_pfo_role_setting (1, 'pm', p.group_project_id, 1) ;
 			PERFORM insert_pfo_role_setting (2, 'pm', p.group_project_id, 1) ;
 		END LOOP ;
-		
+
 		FOR f IN SELECT * FROM forum_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			IF f.allow_anonymous = 1 THEN
@@ -227,7 +227,7 @@
 			   PERFORM insert_pfo_role_setting (2, 'forum', f.group_forum_id, 2) ;
 			END IF ;
 		END LOOP ;
-		
+
 	END LOOP ;
 
 END ;

Modified: trunk/src/db/20100610-pfo-rbac.sql
===================================================================
--- trunk/src/db/20100610-pfo-rbac.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20100610-pfo-rbac.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -26,7 +26,7 @@
 	      RETURN 1 ;
 	   END IF ;
 	END IF ;
-		   
+
 	FOR os IN SELECT * FROM role_setting WHERE role_id = rid ORDER BY role_id, section_name, ref_id
 	LOOP
 		SELECT group_id INTO opid FROM role WHERE role_id = os.role_id ;
@@ -36,7 +36,7 @@
 		   IF nsec = 'project_admin' AND nref = opid THEN
 		      RETURN 1 ;
 		   END IF ;
-		   
+
 		   IF nsec = 'forge_admin' AND nref = -1 AND opid = mastergroupid THEN
 		      RETURN 1 ;
 		   END IF ;
@@ -209,13 +209,13 @@
 
 			PERFORM insert_pfo_role_setting (2, 'tracker', t.group_artifact_id, 1) ;
 		END LOOP ;
-		
+
 		FOR p IN SELECT * FROM project_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			PERFORM insert_pfo_role_setting (1, 'pm', p.group_project_id, 1) ;
 			PERFORM insert_pfo_role_setting (2, 'pm', p.group_project_id, 1) ;
 		END LOOP ;
-		
+
 		FOR f IN SELECT * FROM forum_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			IF f.allow_anonymous = 1 THEN
@@ -234,7 +234,7 @@
 			   PERFORM insert_pfo_role_setting (2, 'forum', f.group_forum_id, 2) ;
 			END IF ;
 		END LOOP ;
-		
+
 	END LOOP ;
 
 END ;

Modified: trunk/src/db/20100926-pfo-rbac.sql
===================================================================
--- trunk/src/db/20100926-pfo-rbac.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20100926-pfo-rbac.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -29,7 +29,7 @@
 		   IF nsec = 'project_admin' AND nref = opid THEN
 		      RETURN 1 ;
 		   END IF ;
-		   
+
 		ELSIF os.section_name IN ('trackeradmin', 'pmadmin', 'forumadmin') THEN
 		   CONTINUE WHEN os.value != '2' ;
 		   onsec = CASE WHEN os.section_name = 'trackeradmin' THEN 'tracker_admin'
@@ -192,13 +192,13 @@
 
 			PERFORM insert_pfo_role_setting (2, 'tracker', t.group_artifact_id, 1) ;
 		END LOOP ;
-		
+
 		FOR p IN SELECT * FROM project_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			PERFORM insert_pfo_role_setting (1, 'pm', p.group_project_id, 1) ;
 			PERFORM insert_pfo_role_setting (2, 'pm', p.group_project_id, 1) ;
 		END LOOP ;
-		
+
 		FOR f IN SELECT * FROM forum_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			IF f.allow_anonymous = 1 THEN
@@ -217,7 +217,7 @@
 			   PERFORM insert_pfo_role_setting (2, 'forum', f.group_forum_id, 2) ;
 			END IF ;
 		END LOOP ;
-		
+
 	END LOOP ;
 
 END ;

Modified: trunk/src/db/20100927-pfo-rbac.sql
===================================================================
--- trunk/src/db/20100927-pfo-rbac.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20100927-pfo-rbac.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -26,7 +26,7 @@
 	      RETURN 1 ;
 	   END IF ;
 	END IF ;
-		   
+
 	FOR os IN SELECT * FROM role_setting WHERE role_id = rid ORDER BY role_id, section_name, ref_id
 	LOOP
 		SELECT group_id INTO opid FROM role WHERE role_id = os.role_id ;
@@ -208,13 +208,13 @@
 
 			PERFORM insert_pfo_role_setting (2, 'tracker', t.group_artifact_id, 1) ;
 		END LOOP ;
-		
+
 		FOR p IN SELECT * FROM project_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			PERFORM insert_pfo_role_setting (1, 'pm', p.group_project_id, 1) ;
 			PERFORM insert_pfo_role_setting (2, 'pm', p.group_project_id, 1) ;
 		END LOOP ;
-		
+
 		FOR f IN SELECT * FROM forum_group_list WHERE group_id = g.group_id AND is_public = 1
 		LOOP
 			IF f.allow_anonymous = 1 THEN
@@ -233,7 +233,7 @@
 			   PERFORM insert_pfo_role_setting (2, 'forum', f.group_forum_id, 2) ;
 			END IF ;
 		END LOOP ;
-		
+
 	END LOOP ;
 
 END ;

Modified: trunk/src/db/20101021-pfo-rbac.sql
===================================================================
--- trunk/src/db/20101021-pfo-rbac.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20101021-pfo-rbac.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -26,7 +26,7 @@
 	      RETURN 1 ;
 	   END IF ;
 	END IF ;
-		   
+
 	FOR os IN SELECT * FROM role_setting WHERE role_id = rid ORDER BY role_id, section_name, ref_id
 	LOOP
 		SELECT group_id INTO opid FROM role WHERE role_id = os.role_id ;

Modified: trunk/src/db/20110211-docman-activityvw.sql
===================================================================
--- trunk/src/db/20110211-docman-activityvw.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20110211-docman-activityvw.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -11,7 +11,7 @@
 agl.group_id, 'trackerclose'::text AS section, agl.group_artifact_id AS ref_id,
 a.artifact_id as subref_id, a.summary as description, a.close_date AS activity_date, u.user_id, u.user_name, u.realname
 FROM artifact_group_list agl JOIN artifact a using (group_artifact_id), users u WHERE u.user_id=a.assigned_to
---actually should join against  
+--actually should join against
 AND a.close_date > 0
 UNION
 SELECT

Modified: trunk/src/db/20110310-docman-trashdir.sql
===================================================================
--- trunk/src/db/20110310-docman-trashdir.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/20110310-docman-trashdir.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -3,7 +3,7 @@
 
 BEGIN
     FOR r IN select groups.group_id as gid from groups where groups.use_docman = 1 and groups.group_id not in(select doc_groups.group_id from doc_groups where doc_groups.groupname = ''.trash'' and doc_groups.stateid = 2) LOOP
-       INSERT into doc_groups (groupname, stateid, group_id) values (''.trash'',2,r.gid); 
+       INSERT into doc_groups (groupname, stateid, group_id) values (''.trash'',2,r.gid);
     END LOOP;
 	return 1;
 END;

Modified: trunk/src/db/FTI-20050315.sql
===================================================================
--- trunk/src/db/FTI-20050315.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/FTI-20050315.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -39,7 +39,7 @@
 	-- **** forum table ****
 	ELSIF table_name = ''forum'' THEN
 		IF TG_OP = ''INSERT'' THEN
-			INSERT INTO forum_idx (msg_id, group_id, vectors) (SELECT f.msg_id, g.group_id, to_tsvector(\'default\', coalesce(f.subject,\'\') ||\' \'|| 
+			INSERT INTO forum_idx (msg_id, group_id, vectors) (SELECT f.msg_id, g.group_id, to_tsvector(\'default\', coalesce(f.subject,\'\') ||\' \'||
 			coalesce(f.body,\'\')) AS vectors FROM forum f, forum_group_list g WHERE f.group_forum_id = g.group_forum_id AND f.msg_id = NEW.msg_id);
 		ELSIF TG_OP = ''UPDATE'' THEN
 			UPDATE forum_idx SET vectors=to_tsvector(\'default\', coalesce(NEW.subject,\'\') ||\' \'|| coalesce(NEW.body,\'\')) WHERE msg_id=NEW.msg_id;
@@ -116,7 +116,7 @@
 END;'
 LANGUAGE 'plpgsql';
 
--- ********** Set up triggers ********** 
+-- ********** Set up triggers **********
 
 CREATE TRIGGER artifact_ts_update AFTER UPDATE OR INSERT OR DELETE ON artifact
 FOR EACH ROW EXECUTE PROCEDURE update_vectors('artifact');

Modified: trunk/src/db/FTI-20050401.sql
===================================================================
--- trunk/src/db/FTI-20050401.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/FTI-20050401.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -39,7 +39,7 @@
 	-- **** forum table ****
 	ELSIF table_name = ''forum'' THEN
 		IF TG_OP = ''INSERT'' THEN
-			INSERT INTO forum_idx (msg_id, group_id, vectors) (SELECT f.msg_id, g.group_id, to_tsvector(\'default\', coalesce(f.subject,\'\') ||\' \'|| 
+			INSERT INTO forum_idx (msg_id, group_id, vectors) (SELECT f.msg_id, g.group_id, to_tsvector(\'default\', coalesce(f.subject,\'\') ||\' \'||
 			coalesce(f.body,\'\')) AS vectors FROM forum f, forum_group_list g WHERE f.group_forum_id = g.group_forum_id AND f.msg_id = NEW.msg_id);
 		ELSIF TG_OP = ''UPDATE'' THEN
 			UPDATE forum_idx SET vectors=to_tsvector(\'default\', coalesce(NEW.subject,\'\') ||\' \'|| coalesce(NEW.body,\'\')) WHERE msg_id=NEW.msg_id;
@@ -116,7 +116,7 @@
 END;'
 LANGUAGE 'plpgsql';
 
--- ********** Set up triggers ********** 
+-- ********** Set up triggers **********
 
 CREATE TRIGGER artifact_ts_update AFTER UPDATE OR INSERT OR DELETE ON artifact
 FOR EACH ROW EXECUTE PROCEDURE update_vectors('artifact');

Modified: trunk/src/db/FTI-20050530.sql
===================================================================
--- trunk/src/db/FTI-20050530.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/FTI-20050530.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -8,23 +8,23 @@
 		IF $4 THEN
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
 			AND forum_group_list.group_forum_id IN (\'$3\')
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
 		ELSE
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
 			AND forum_group_list.group_forum_id IN (\'$3\')
 			AND forum_group_list.is_public = 1
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
@@ -33,21 +33,21 @@
 		IF $4 THEN
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
 		ELSE
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
 			AND forum_group_list.is_public = 1
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;

Modified: trunk/src/db/FTI.sql
===================================================================
--- trunk/src/db/FTI.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/FTI.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,6 +1,6 @@
 SET client_min_messages TO warning;
 
--- ********** Create auxiliar tables ********** 
+-- ********** Create auxiliar tables **********
 
 CREATE TABLE artifact_idx (
 	artifact_id integer,
@@ -62,10 +62,10 @@
 	vectors tsvector
 );
 
--- ********** Populate with current data and create index ********** 
+-- ********** Populate with current data and create index **********
 
-INSERT INTO artifact_idx (artifact_id, group_artifact_id, vectors) 
-SELECT artifact_id, group_artifact_id, to_tsvector('default', coalesce(details,'') ||' 
+INSERT INTO artifact_idx (artifact_id, group_artifact_id, vectors)
+SELECT artifact_id, group_artifact_id, to_tsvector('default', coalesce(details,'') ||'
 '|| coalesce(summary,'')) AS vectors
 FROM artifact ORDER BY artifact_id;
 
@@ -78,14 +78,14 @@
 CREATE INDEX artifact_message_idxFTI ON artifact_message_idx USING gist(vectors);
 
 INSERT INTO doc_data_idx (docid, group_id, vectors)
-SELECT docid, group_id, to_tsvector('default', coalesce(title,'') ||' 
+SELECT docid, group_id, to_tsvector('default', coalesce(title,'') ||'
 '|| coalesce(description,'')) AS vectors
 FROM doc_data ORDER BY docid;
 
 CREATE INDEX doc_data_idxFTI ON doc_data_idx USING gist(vectors);
 
 INSERT INTO forum_idx (msg_id, group_id, vectors)
-(SELECT f.msg_id, g.group_id, to_tsvector('default', coalesce(f.subject,'') ||' 
+(SELECT f.msg_id, g.group_id, to_tsvector('default', coalesce(f.subject,'') ||'
 '|| coalesce(f.body,'')) AS vectors
 FROM forum f, forum_group_list g WHERE f.group_forum_id = g.group_forum_id)
 ORDER BY msg_id;
@@ -99,28 +99,28 @@
 CREATE INDEX frs_file_idxFTI ON frs_file_idx USING gist(vectors);
 
 INSERT INTO frs_release_idx (release_id, vectors)
-SELECT release_id, to_tsvector('default', coalesce(changes,'') ||' 
+SELECT release_id, to_tsvector('default', coalesce(changes,'') ||'
 '|| coalesce(notes,'') ||' '|| coalesce(name,'')) AS vectors
 FROM frs_release ORDER BY release_id;
 
 CREATE INDEX frs_release_idxFTI ON frs_release_idx USING gist(vectors);
 
 INSERT INTO groups_idx (group_id, vectors)
-SELECT group_id, to_tsvector('default', coalesce(group_name,'') ||' 
+SELECT group_id, to_tsvector('default', coalesce(group_name,'') ||'
 '|| coalesce(short_description,'') ||' '|| coalesce(unix_group_name,'')) AS vectors
 FROM groups ORDER BY group_id;
 
 CREATE INDEX groups_idxFTI ON groups_idx USING gist(vectors);
 
 INSERT INTO news_bytes_idx (id, vectors)
-SELECT id, to_tsvector('default', coalesce(summary,'') ||' 
+SELECT id, to_tsvector('default', coalesce(summary,'') ||'
 '|| coalesce(details,'')) AS vectors
 FROM news_bytes ORDER BY id;
 
 CREATE INDEX news_bytes_idxFTI ON news_bytes_idx USING gist(vectors);
 
 INSERT INTO project_task_idx (project_task_id, vectors)
-SELECT project_task_id, to_tsvector('default', coalesce(summary,'') ||' 
+SELECT project_task_id, to_tsvector('default', coalesce(summary,'') ||'
 '|| coalesce(details,'')) AS vectors
 FROM project_task ORDER BY project_task_id;
 
@@ -131,14 +131,14 @@
 CREATE INDEX project_task_idxFTI ON project_task_idx USING gist(vectors);
 
 INSERT INTO skills_data_idx (skills_data_id, vectors)
-SELECT skills_data_id, to_tsvector('default', coalesce(title,'') ||' 
+SELECT skills_data_id, to_tsvector('default', coalesce(title,'') ||'
 '|| coalesce(keywords,'')) AS vectors
 FROM skills_data ORDER BY skills_data_id;
 
 CREATE INDEX skills_data_idxFTI ON skills_data_idx USING gist(vectors);
 
 INSERT INTO users_idx (user_id, vectors)
-SELECT user_id, to_tsvector('default', coalesce(user_name,'') ||' 
+SELECT user_id, to_tsvector('default', coalesce(user_name,'') ||'
 '|| coalesce(realname,'')) AS vectors
 FROM users ORDER BY user_id;
 
@@ -146,7 +146,7 @@
 
 -- VACUUM FULL ANALYZE;
 
--- ********** Create trigger function to update idx tables ********** 
+-- ********** Create trigger function to update idx tables **********
 
 CREATE OR REPLACE FUNCTION update_vectors() RETURNS TRIGGER AS '
 DECLARE
@@ -183,7 +183,7 @@
 	-- **** forum table ****
 	ELSIF table_name = ''forum'' THEN
 		IF TG_OP = ''INSERT'' THEN
-			INSERT INTO forum_idx (msg_id, group_id, vectors) (SELECT f.msg_id, g.group_id, to_tsvector(\'default\', coalesce(f.subject,\'\') ||\' \'|| 
+			INSERT INTO forum_idx (msg_id, group_id, vectors) (SELECT f.msg_id, g.group_id, to_tsvector(\'default\', coalesce(f.subject,\'\') ||\' \'||
 			coalesce(f.body,\'\')) AS vectors FROM forum f, forum_group_list g WHERE f.group_forum_id = g.group_forum_id AND f.msg_id = NEW.msg_id);
 		ELSIF TG_OP = ''UPDATE'' THEN
 			UPDATE forum_idx SET vectors=to_tsvector(\'default\', coalesce(NEW.subject,\'\') ||\' \'|| coalesce(NEW.body,\'\')) WHERE msg_id=NEW.msg_id;
@@ -260,7 +260,7 @@
 END;'
 LANGUAGE 'plpgsql';
 
--- ********** Set up triggers ********** 
+-- ********** Set up triggers **********
 
 CREATE TRIGGER artifact_ts_update AFTER UPDATE OR INSERT OR DELETE ON artifact
 FOR EACH ROW EXECUTE PROCEDURE update_vectors('artifact');
@@ -292,7 +292,7 @@
 CREATE TRIGGER users_ts_update AFTER UPDATE OR INSERT OR DELETE ON users
 FOR EACH ROW EXECUTE PROCEDURE update_vectors('users');
 
--- ********** Create types for results ********** 
+-- ********** Create types for results **********
 
 CREATE TYPE artifact_results AS (group_artifact_id integer,
 	artifact_id integer,
@@ -338,7 +338,7 @@
 
 CREATE TYPE news_bytes_results AS (summary text,
 	post_date integer,
-	forum_id integer, 
+	forum_id integer,
 	realname text
 );
 
@@ -373,10 +373,10 @@
 	realname text
 );
 
--- ********** Create search store procedures ********** 
+-- ********** Create search store procedures **********
 
 CREATE OR REPLACE FUNCTION artifact_search(text, int) RETURNS SETOF artifact_results AS '
-	SELECT a.group_artifact_id, a.artifact_id, a.summary, a.open_date, u.realname FROM artifact a, 
+	SELECT a.group_artifact_id, a.artifact_id, a.summary, a.open_date, u.realname FROM artifact a,
 	(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai LEFT OUTER JOIN artifact_message_idx ami USING (artifact_id),
 	to_tsquery($1) AS q
 	WHERE ai.group_artifact_id=$2
@@ -400,7 +400,7 @@
 			AND doc_data.group_id = $2
 			AND doc_groups.doc_group IN (\'$3\')
 			AND doc_data.stateid IN (1, 4, 5)
-			AND doc_data.docid IN (SELECT docid FROM doc_data_idx, to_tsquery($1) AS q 
+			AND doc_data.docid IN (SELECT docid FROM doc_data_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
@@ -423,7 +423,7 @@
 			WHERE doc_data.doc_group = doc_groups.doc_group
 			AND doc_data.group_id = $2
 			AND doc_data.stateid IN (1, 4, 5)
-			AND doc_data.docid IN (SELECT docid FROM doc_data_idx, to_tsquery($1) AS q 
+			AND doc_data.docid IN (SELECT docid FROM doc_data_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
@@ -433,7 +433,7 @@
 			WHERE doc_data.doc_group = doc_groups.doc_group
 			AND doc_data.group_id = $2
 			AND doc_data.stateid = 1
-			AND doc_data.docid IN (SELECT docid FROM doc_data_idx, to_tsquery($1) AS q 
+			AND doc_data.docid IN (SELECT docid FROM doc_data_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
@@ -458,23 +458,23 @@
 		IF $4 THEN
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
 			AND forum_group_list.group_forum_id IN (\'$3\')
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
 		ELSE
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
 			AND forum_group_list.group_forum_id IN (\'$3\')
 			AND forum_group_list.is_public = 1
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
@@ -483,21 +483,21 @@
 		IF $4 THEN
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
 		ELSE
 			FOR data IN SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname, forum_group_list.forum_name
 			FROM forum, users, forum_group_list, to_tsquery($1) AS q
-			WHERE users.user_id = forum.posted_by 
-			AND forum_group_list.group_forum_id = forum.group_forum_id 
-			AND forum_group_list.is_public <> 9 
+			WHERE users.user_id = forum.posted_by
+			AND forum_group_list.group_forum_id = forum.group_forum_id
+			AND forum_group_list.is_public <> 9
 			AND forum_group_list.is_public = 1
-			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q 
+			AND forum.msg_id IN (SELECT msg_id FROM forum_idx, to_tsquery($1) AS q
 			WHERE group_id = $2 AND vectors @@ q ORDER BY rank(vectors, q) DESC) LOOP
 				RETURN NEXT data;
 			END LOOP;
@@ -509,9 +509,9 @@
 
 CREATE OR REPLACE FUNCTION forum_search(text, integer) RETURNS SETOF forum_results AS '
 	SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname
-	FROM forum, users, to_tsquery($1) AS q 
+	FROM forum, users, to_tsquery($1) AS q
 	WHERE users.user_id=forum.posted_by
-	AND msg_id IN (SELECT fi.msg_id FROM forum_idx fi, forum f, to_tsquery($1) AS q 
+	AND msg_id IN (SELECT fi.msg_id FROM forum_idx fi, forum f, to_tsquery($1) AS q
 	WHERE fi.msg_id = f.msg_id AND f.group_forum_id=$2
 	AND vectors @@ q ORDER BY rank(vectors, q) DESC);'
 LANGUAGE 'SQL';
@@ -531,7 +531,7 @@
 			AND frs_file.release_id=frs_release.release_id
 			AND frs_package.group_id=$2
 			AND frs_package.package_id IN (\'$3\')
-			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r 
+			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r
 			LEFT JOIN frs_file_idx f ON r.release_id=f.release_id, to_tsquery($1) AS q
 			WHERE r.vectors @@ q OR f.vectors @@ q ORDER BY rank(r.vectors, q) DESC, rank(f.vectors, q) DESC) LOOP
 				RETURN NEXT data;
@@ -545,7 +545,7 @@
 			AND frs_package.group_id=$2
 			AND frs_package.package_id IN (\'$3\')
 			AND frs_package.is_public=1
-			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r 
+			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r
 			LEFT JOIN frs_file_idx f ON r.release_id=f.release_id, to_tsquery($1) AS q
 			WHERE r.vectors @@ q OR f.vectors @@ q ORDER BY rank(r.vectors, q) DESC, rank(f.vectors, q) DESC) LOOP
 				RETURN NEXT data;
@@ -559,7 +559,7 @@
 			AND frs_package.package_id = frs_release.package_id
 			AND frs_file.release_id=frs_release.release_id
 			AND frs_package.group_id=$2
-			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r 
+			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r
 			LEFT JOIN frs_file_idx f ON r.release_id=f.release_id, to_tsquery($1) AS q
 			WHERE r.vectors @@ q OR f.vectors @@ q ORDER BY rank(r.vectors, q) DESC, rank(f.vectors, q) DESC) LOOP
 				RETURN NEXT data;
@@ -572,7 +572,7 @@
 			AND frs_file.release_id=frs_release.release_id
 			AND frs_package.group_id=$2
 			AND frs_package.is_public=1
-			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r 
+			AND frs_release.release_id IN (SELECT r.release_id FROM frs_release_idx r
 			LEFT JOIN frs_file_idx f ON r.release_id=f.release_id, to_tsquery($1) AS q
 			WHERE r.vectors @@ q OR f.vectors @@ q ORDER BY rank(r.vectors, q) DESC, rank(f.vectors, q) DESC) LOOP
 				RETURN NEXT data;
@@ -604,7 +604,7 @@
 	license,
 	register_time
 	FROM groups, to_tsquery($1) AS q
-	WHERE status IN (\'A\', \'H\') AND is_public=\'1\' AND short_description <> \'\' AND 
+	WHERE status IN (\'A\', \'H\') AND is_public=\'1\' AND short_description <> \'\' AND
 	group_id IN (SELECT group_id FROM groups_idx, to_tsquery($1) AS q
 	WHERE vectors @@ q ORDER BY rank(vectors, q) DESC);'
 LANGUAGE 'SQL';
@@ -628,7 +628,7 @@
 	IF $3 <> \'\' THEN
 	    -- show non public
 		IF $4 THEN
-			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete, 
+			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete,
 			project_task.start_date, project_task.end_date, users.firstname||\' \'||users.lastname AS realname,
 			project_group_list.project_name, project_group_list.group_project_id
 			FROM project_task, users, project_group_list, to_tsquery($1) AS q
@@ -644,7 +644,7 @@
 				RETURN NEXT data;
 			END LOOP;
 		ELSE
-			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete, 
+			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete,
 			project_task.start_date, project_task.end_date, users.firstname||\' \'||users.lastname AS realname,
 			project_group_list.project_name, project_group_list.group_project_id
 			FROM project_task, users, project_group_list, to_tsquery($1) AS q
@@ -663,7 +663,7 @@
 		END IF;
 	ELSE
 		IF $4 THEN
-			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete, 
+			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete,
 			project_task.start_date, project_task.end_date, users.firstname||\' \'||users.lastname AS realname,
 			project_group_list.project_name, project_group_list.group_project_id
 			FROM project_task, users, project_group_list, to_tsquery($1) AS q
@@ -678,7 +678,7 @@
 				RETURN NEXT data;
 			END LOOP;
 		ELSE
-			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete, 
+			FOR data IN SELECT project_task.project_task_id, headline(project_task.summary, q) AS summary, project_task.percent_complete,
 			project_task.start_date, project_task.end_date, users.firstname||\' \'||users.lastname AS realname,
 			project_group_list.project_name, project_group_list.group_project_id
 			FROM project_task, users, project_group_list, to_tsquery($1) AS q
@@ -707,7 +707,7 @@
 	FROM skills_data, to_tsquery($1) AS q, users, skills_data_types
 	WHERE skills_data.user_id=users.user_id
 	AND skills_data.type=skills_data_types.type_id
-	AND skills_data.skills_data_id IN (SELECT skills_data_id FROM skills_data_idx, 
+	AND skills_data.skills_data_id IN (SELECT skills_data_id FROM skills_data_idx,
 	to_tsquery($1) AS q WHERE vectors @@ q ORDER BY rank(vectors, q) DESC);'
 LANGUAGE 'SQL';
 
@@ -726,8 +726,8 @@
 			AND artifact_group_list.group_artifact_id = artifact.group_artifact_id
 			AND artifact_group_list.group_id = $2
 			AND artifact_group_list.group_artifact_id IN (\'$3\')
-			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a, 
-			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai 
+			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a,
+			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai
 			LEFT OUTER JOIN artifact_message_idx ami USING (artifact_id), artifact_group_list agl,
 			to_tsquery($1) AS q
 			WHERE ai.group_artifact_id=agl.group_artifact_id
@@ -749,8 +749,8 @@
 			AND artifact_group_list.group_id = $2
 			AND artifact_group_list.group_artifact_id IN (\'$3\')
 			AND artifact_group_list.is_public = 1
-			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a, 
-			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai 
+			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a,
+			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai
 			LEFT OUTER JOIN artifact_message_idx ami USING (artifact_id), artifact_group_list agl,
 			to_tsquery($1) AS q
 			WHERE ai.group_artifact_id=agl.group_artifact_id
@@ -773,8 +773,8 @@
 			WHERE users.user_id = artifact.submitted_by
 			AND artifact_group_list.group_artifact_id = artifact.group_artifact_id
 			AND artifact_group_list.group_id = $2
-			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a, 
-			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai 
+			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a,
+			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai
 			LEFT OUTER JOIN artifact_message_idx ami USING (artifact_id), artifact_group_list agl,
 			to_tsquery($1) AS q
 			WHERE ai.group_artifact_id=agl.group_artifact_id
@@ -795,8 +795,8 @@
 			AND artifact_group_list.group_artifact_id = artifact.group_artifact_id
 			AND artifact_group_list.group_id = $2
 			AND artifact_group_list.is_public = 1
-			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a, 
-			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai 
+			AND artifact.artifact_id IN (SELECT a.artifact_id FROM artifact a,
+			(SELECT DISTINCT ON (ai.artifact_id) ai.artifact_id, COUNT(ami.id) AS total FROM artifact_idx ai
 			LEFT OUTER JOIN artifact_message_idx ami USING (artifact_id), artifact_group_list agl,
 			to_tsquery($1) AS q
 			WHERE ai.group_artifact_id=agl.group_artifact_id

Modified: trunk/src/db/SQL_2.5/DefaultValues_2_5.sql
===================================================================
--- trunk/src/db/SQL_2.5/DefaultValues_2_5.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/SQL_2.5/DefaultValues_2_5.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -30,7 +30,7 @@
 --
 --      Default Data for 'users'
 --
-INSERT INTO users (user_id, user_name, email, user_pw)  
+INSERT INTO users (user_id, user_name, email, user_pw)
 VALUES (100,'None','noreply at sourceforge.net','*********34343');
 
 --

Modified: trunk/src/db/SQL_2.6/DefaultValues.sql
===================================================================
--- trunk/src/db/SQL_2.6/DefaultValues.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/SQL_2.6/DefaultValues.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,6 +1,6 @@
 INSERT INTO groups (group_id) VALUES (1);
 
-INSERT INTO users (user_id, user_name, email, user_pw)  
+INSERT INTO users (user_id, user_name, email, user_pw)
 VALUES (100,'None','noreply at sourceforge.net','*********');
 
 INSERT INTO bug_resolution (resolution_id, resolution_name) VALUES (1,'Fixed');

Modified: trunk/src/db/SQL_2.6/replication-reset-master.sql
===================================================================
--- trunk/src/db/SQL_2.6/replication-reset-master.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/SQL_2.6/replication-reset-master.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -3,9 +3,9 @@
 --
 --	reloid's get lost during dump/restore - reset them
 --
-UPDATE _rserv_tables_ 
+UPDATE _rserv_tables_
 SET reloid=
-(select oid 
+(select oid
 FROM pg_class pgc
 WHERE relname=_rserv_tables_.tname);
 

Modified: trunk/src/db/SQL_2.6/replication-reset-slave.sql
===================================================================
--- trunk/src/db/SQL_2.6/replication-reset-slave.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/SQL_2.6/replication-reset-slave.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,9 +1,9 @@
 --
 --	reloid's get lost during a dump/restore - reset them
 --
-UPDATE _rserv_slave_tables_ 
+UPDATE _rserv_slave_tables_
 SET reloid=
-(select oid 
+(select oid
 FROM pg_class pgc
 WHERE relname=_rserv_slave_tables_.tname);
 

Modified: trunk/src/db/SQL_2.6/replication-slave.sql
===================================================================
--- trunk/src/db/SQL_2.6/replication-slave.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/SQL_2.6/replication-slave.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -35,7 +35,7 @@
         "tasks_closed" integer DEFAULT 0,
         "help_requests" integer DEFAULT 0
 );
-CREATE UNIQUE INDEX "statsproject_month_day_group" on "stats_project" 
+CREATE UNIQUE INDEX "statsproject_month_day_group" on "stats_project"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -45,7 +45,7 @@
         "group_id" integer DEFAULT 0 NOT NULL,
         "developers" integer DEFAULT 0 NOT NULL
 );
-CREATE UNIQUE INDEX "statsprojectdev_month_day_group" on "stats_project_developers" 
+CREATE UNIQUE INDEX "statsprojectdev_month_day_group" on "stats_project_developers"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -56,7 +56,7 @@
         "percentile" double precision DEFAULT 0 NOT NULL,
         "group_id" integer DEFAULT 0 NOT NULL
 );
-CREATE UNIQUE INDEX "statsprojectmetric_month_day_gr" on "stats_project_metric" 
+CREATE UNIQUE INDEX "statsprojectmetric_month_day_gr" on "stats_project_metric"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -66,7 +66,7 @@
         "file_id" integer,
         "downloads" integer
 );
-CREATE UNIQUE INDEX "frsdlfileagg_month_day_file" on "frs_dlstats_file_agg" 
+CREATE UNIQUE INDEX "frsdlfileagg_month_day_file" on "frs_dlstats_file_agg"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "file_id" "int4_ops" );
 
 
@@ -76,7 +76,7 @@
         "group_id" integer DEFAULT 0 NOT NULL,
         "pages" integer DEFAULT 0 NOT NULL
 );
-CREATE UNIQUE INDEX "statssubdpages_month_day_group" on "stats_subd_pages" 
+CREATE UNIQUE INDEX "statssubdpages_month_day_group" on "stats_subd_pages"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -86,7 +86,7 @@
         "group_id" integer,
         "count" integer
 );
-CREATE UNIQUE INDEX "statslogobygroup_month_day_grou" on "stats_agg_logo_by_group" 
+CREATE UNIQUE INDEX "statslogobygroup_month_day_grou" on "stats_agg_logo_by_group"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -98,7 +98,7 @@
         "commits" integer DEFAULT 0 NOT NULL,
         "adds" integer DEFAULT 0 NOT NULL
 );
-CREATE UNIQUE INDEX "statscvsgroup_month_day_group" on "stats_cvs_group" 
+CREATE UNIQUE INDEX "statscvsgroup_month_day_group" on "stats_cvs_group"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -108,7 +108,7 @@
         "group_id" integer,
         "count" integer
 );
-CREATE UNIQUE INDEX "statssitebygroup_month_day_grou" on "stats_agg_site_by_group" 
+CREATE UNIQUE INDEX "statssitebygroup_month_day_grou" on "stats_agg_site_by_group"
 	using btree ( "month" "int4_ops", "day" "int4_ops", "group_id" "int4_ops" );
 
 
@@ -117,7 +117,7 @@
         "day" integer,
         "site_page_views" integer
 );
-CREATE  INDEX "statssitepagesbyday_month_day" on "stats_site_pages_by_day" 
+CREATE  INDEX "statssitepagesbyday_month_day" on "stats_site_pages_by_day"
 	using btree ( "month" "int4_ops", "day" "int4_ops" );
 
 
@@ -304,8 +304,8 @@
 
 CREATE TABLE "foundry_projects" (
         "id" integer DEFAULT nextval('foundry_projects_pk_seq'::text) NOT NULL,
-        "foundry_id" integer DEFAULT '0' NOT NULL, 
-        "project_id" integer DEFAULT '0' NOT NULL, 
+        "foundry_id" integer DEFAULT '0' NOT NULL,
+        "project_id" integer DEFAULT '0' NOT NULL,
         Constraint "foundry_projects_pkey" Primary Key ("id")
 );
 CREATE  INDEX "foundry_projects_foundry" on "foundry_projects" using btree (

Modified: trunk/src/db/SQL_2.6/user_rating.sql
===================================================================
--- trunk/src/db/SQL_2.6/user_rating.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/SQL_2.6/user_rating.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -20,16 +20,16 @@
 );
 CREATE  INDEX "user_metric0_user_id" on "user_metric0" using btree ( "user_id" "int4_ops" );
 
-INSERT INTO user_metric0 (user_id,times_ranked,avg_raters_importance,avg_rating,metric,percentile,importance_factor) 
-SELECT user_id,5,1.25,1,0,0,1.25 
+INSERT INTO user_metric0 (user_id,times_ranked,avg_raters_importance,avg_rating,metric,percentile,importance_factor)
+SELECT user_id,5,1.25,1,0,0,1.25
 FROM user_group
-WHERE 
+WHERE
 user_group.group_id=4
 AND user_group.admin_flags='A';
 
-UPDATE user_metric0 SET 
+UPDATE user_metric0 SET
 metric=(log(times_ranked::float)*avg_rating::float)::float,
 percentile=(100-(100*((ranking::float-1)/(select count(*) from user_metric0))))::float;
 
-UPDATE user_metric0 SET 
+UPDATE user_metric0 SET
 importance_factor=(1+((percentile::float/100)*.5))::float;

Modified: trunk/src/db/gforge-data-mysql.sql
===================================================================
--- trunk/src/db/gforge-data-mysql.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/gforge-data-mysql.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,113 +1,113 @@
 -- phpMyAdmin SQL Dump
 -- version 2.9.2
 -- http://www.phpmyadmin.net
--- 
--- 
+--
+--
 -- Database: `gforge`
--- 
+--
 
--- 
+--
 -- Dumping data for table `activity_log`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_canned_responses`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_counts_agg`
--- 
+--
 
-INSERT INTO `artifact_counts_agg` (`group_artifact_id`, `count`, `open_count`) VALUES 
+INSERT INTO `artifact_counts_agg` (`group_artifact_id`, `count`, `open_count`) VALUES
 (100, 0, 0);
 
--- 
+--
 -- Dumping data for table `artifact_extra_field_data`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_extra_field_elements`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_extra_field_list`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_file`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_group_list`
--- 
+--
 
-INSERT INTO `artifact_group_list` (`group_artifact_id`, `group_id`, `name`, `description`, `is_public`, `allow_anon`, `email_all_updates`, `email_address`, `due_period`, `submit_instructions`, `browse_instructions`, `datatype`, `status_timeout`, `custom_status_field`, `custom_renderer`) VALUES 
+INSERT INTO `artifact_group_list` (`group_artifact_id`, `group_id`, `name`, `description`, `is_public`, `allow_anon`, `email_all_updates`, `email_address`, `due_period`, `submit_instructions`, `browse_instructions`, `datatype`, `status_timeout`, `custom_status_field`, `custom_renderer`) VALUES
 (100, 1, 'Default', 'Default Data - Dont Edit', 3, 0, 0, '', 2592000, NULL, NULL, 0, NULL, 0, NULL);
 
--- 
+--
 -- Dumping data for table `artifact_history`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_message`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_monitor`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_perm`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_query`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_query_fields`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `artifact_status`
--- 
+--
 
-INSERT INTO `artifact_status` (`id`, `status_name`) VALUES 
+INSERT INTO `artifact_status` (`id`, `status_name`) VALUES
 (1, 'Open'),
 (2, 'Closed');
 
--- 
+--
 -- Dumping data for table `artifact_type_monitor`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `canned_responses`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `country_code`
--- 
+--
 
-INSERT INTO `country_code` (`country_name`, `ccode`) VALUES 
+INSERT INTO `country_code` (`country_name`, `ccode`) VALUES
 ('AFGHANISTAN', 'AF'),
 ('ALBANIA', 'AL'),
 ('ALGERIA', 'DZ'),
@@ -348,15 +348,15 @@
 ('ZIMBABWE', 'ZW'),
 ('UNITED KINGDOM', 'UK');
 
--- 
+--
 -- Dumping data for table `cron_history`
--- 
+--
 
--- 
+--
 -- Dumping data for table `forum_attachment_type`
--- 
+--
 
-INSERT INTO `forum_attachment_type` (`extension`, `mimetype`, `size`, `width`, `height`, `enabled`) VALUES 
+INSERT INTO `forum_attachment_type` (`extension`, `mimetype`, `size`, `width`, `height`, `enabled`) VALUES
 ("gif", "Content-type: image/gif", 20000, 620, 280, 1),
 ("jpeg", "Content-type: image/jpeg", 20000, 620, 280, 1),
 ("jpg", "Content-type: image/jpeg", 100000, 0, 0, 1),
@@ -370,103 +370,103 @@
 ("txt", "Content-type: plain/text", 20000, 0, 0, 1);
 
 
--- 
+--
 -- Dumping data for table `cron_history`
--- 
+--
 
 
 
--- 
+--
 -- Dumping data for table `db_images`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `deleted_groups`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `deleted_mailing_lists`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `doc_data`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `doc_groups`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `doc_states`
--- 
+--
 
-INSERT INTO `doc_states` (`stateid`, `name`) VALUES 
+INSERT INTO `doc_states` (`stateid`, `name`) VALUES
 (1, 'active'),
 (2, 'deleted'),
 (3, 'pending'),
 (4, 'hidden'),
 (5, 'private');
 
--- 
+--
 -- Dumping data for table `filemodule_monitor`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `forum`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `forum_agg_msg_count`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `forum_group_list`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `forum_monitored_forums`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `forum_perm`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `forum_saved_place`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `frs_dlstats_file`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `frs_dlstats_filetotal_agg`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `frs_file`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `frs_filetype`
--- 
+--
 
-INSERT INTO `frs_filetype` (`type_id`, `name`) VALUES 
+INSERT INTO `frs_filetype` (`type_id`, `name`) VALUES
 (1000, '.deb'),
 (2000, '.rpm'),
 (3000, '.zip'),
@@ -483,16 +483,16 @@
 (9200, 'pdf'),
 (9999, 'Other');
 
--- 
+--
 -- Dumping data for table `frs_package`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `frs_processor`
--- 
+--
 
-INSERT INTO `frs_processor` (`processor_id`, `name`) VALUES 
+INSERT INTO `frs_processor` (`processor_id`, `name`) VALUES
 (1000, 'i386'),
 (6000, 'IA64'),
 (7000, 'Alpha'),
@@ -503,60 +503,60 @@
 (5000, 'UltraSparc'),
 (9999, 'Other');
 
--- 
+--
 -- Dumping data for table `frs_release`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `frs_status`
--- 
+--
 
-INSERT INTO `frs_status` (`status_id`, `name`) VALUES 
+INSERT INTO `frs_status` (`status_id`, `name`) VALUES
 (1, 'Active'),
 (3, 'Hidden');
 
--- 
+--
 -- Dumping data for table `group_cvs_history`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `group_history`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `group_join_request`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `group_plugin`
--- 
+--
 
-INSERT INTO `group_plugin` (`group_plugin_id`, `group_id`, `plugin_id`) VALUES 
+INSERT INTO `group_plugin` (`group_plugin_id`, `group_id`, `plugin_id`) VALUES
 (1, 1, 1),
 (2, 2, 1),
 (3, 3, 1),
 (4, 4, 1);
 
--- 
+--
 -- Dumping data for table `groups`
--- 
+--
 
-INSERT INTO `groups` (`group_id`, `group_name`, `homepage`, `is_public`, `status`, `unix_group_name`, `unix_box`, `http_domain`, `short_description`, `register_purpose`, `license_other`, `register_time`, `rand_hash`, `use_mail`, `use_survey`, `use_forum`, `use_pm`, `use_scm`, `use_news`, `type_id`, `use_docman`, `new_doc_address`, `send_all_docs`, `use_pm_depend_box`, `use_ftp`, `use_tracker`, `use_frs`, `use_stats`, `enable_pserver`, `enable_anonscm`, `license`, `scm_box`) VALUES 
+INSERT INTO `groups` (`group_id`, `group_name`, `homepage`, `is_public`, `status`, `unix_group_name`, `unix_box`, `http_domain`, `short_description`, `register_purpose`, `license_other`, `register_time`, `rand_hash`, `use_mail`, `use_survey`, `use_forum`, `use_pm`, `use_scm`, `use_news`, `type_id`, `use_docman`, `new_doc_address`, `send_all_docs`, `use_pm_depend_box`, `use_ftp`, `use_tracker`, `use_frs`, `use_stats`, `enable_pserver`, `enable_anonscm`, `license`, `scm_box`) VALUES
 (1, 'Master Group', NULL, 0, 'A', 'gforge', 'shell1', NULL, NULL, NULL, NULL, 0, NULL, 1, 1, 1, 1, 1, 1, 1, 1, '', 0, 1, 1, 1, 1, 1, 1, 1, 100, 'cvs1'),
 (2, 'Stats Group', NULL, 0, 'A', 'stats', 'shell1', NULL, NULL, NULL, NULL, 0, NULL, 1, 1, 1, 1, 1, 1, 1, 1, '', 0, 1, 1, 1, 1, 1, 1, 1, 100, 'cvs1'),
 (3, 'News Group', NULL, 0, 'A', 'news', 'shell1', NULL, NULL, NULL, NULL, 0, NULL, 1, 1, 1, 1, 1, 1, 1, 1, '', 0, 1, 1, 1, 1, 1, 1, 1, 100, 'cvs1'),
 (4, 'Peer Ratings Group', NULL, 0, 'A', 'peerrating', 'shell1', NULL, NULL, NULL, NULL, 0, NULL, 1, 1, 1, 1, 1, 1, 1, 1, '', 0, 1, 1, 1, 1, 1, 1, 1, 100, 'cvs1'),
 (5, 'Template Project', NULL, 1, 'P', 'template', 'shell1', NULL, 'Project to house templates used to build other projects', NULL, NULL, 1120266772, NULL, 1, 1, 1, 1, 1, 1, 1, 1, '', 0, 1, 1, 1, 1, 1, 1, 1, 100, NULL);
 
--- 
+--
 -- Dumping data for table `licenses`
--- 
+--
 
-INSERT INTO `licenses` (`license_id`, `license_name`) VALUES 
+INSERT INTO `licenses` (`license_id`, `license_name`) VALUES
 ('100', 'None'),
 ('101', 'GNU General Public License (GPL)'),
 ('102', 'GNU Library Public License (LGPL)'),
@@ -585,26 +585,26 @@
 ('125', 'Website Only'),
 ('126', 'Other/Proprietary License');
 
--- 
+--
 -- Dumping data for table `mail_group_list`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `massmail_queue`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `news_bytes`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `nss_groups`
--- 
+--
 
-INSERT INTO `nss_groups` (`user_id`, `group_id`, `name`, `gid`) VALUES 
+INSERT INTO `nss_groups` (`user_id`, `group_id`, `name`, `gid`) VALUES
 (0, 1, 'gforge', 10001),
 (0, 2, 'stats', 10002),
 (0, 3, 'news', 10003),
@@ -614,21 +614,21 @@
 (0, 3, 'scm_news', 50003),
 (0, 4, 'scm_peerrating', 50004);
 
--- 
+--
 -- Dumping data for table `nss_usergroups`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `people_job`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `people_job_category`
--- 
+--
 
-INSERT INTO `people_job_category` (`category_id`, `name`, `private_flag`) VALUES 
+INSERT INTO `people_job_category` (`category_id`, `name`, `private_flag`) VALUES
 (1, 'Developer', 0),
 (2, 'Project Manager', 0),
 (3, 'Unix Admin', 0),
@@ -637,185 +637,185 @@
 (6, 'Support Manager', 0),
 (7, 'Graphic/Other Designer', 0);
 
--- 
+--
 -- Dumping data for table `people_job_inventory`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `people_job_status`
--- 
+--
 
-INSERT INTO `people_job_status` (`status_id`, `name`) VALUES 
+INSERT INTO `people_job_status` (`status_id`, `name`) VALUES
 (1, 'Open'),
 (2, 'Filled'),
 (3, 'Deleted');
 
--- 
+--
 -- Dumping data for table `people_skill`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `people_skill_inventory`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `people_skill_level`
--- 
+--
 
-INSERT INTO `people_skill_level` (`skill_level_id`, `name`) VALUES 
+INSERT INTO `people_skill_level` (`skill_level_id`, `name`) VALUES
 (1, 'Want to Learn'),
 (2, 'Competent'),
 (3, 'Wizard'),
 (4, 'Wrote The Book'),
 (5, 'Wrote It');
 
--- 
+--
 -- Dumping data for table `people_skill_year`
--- 
+--
 
-INSERT INTO `people_skill_year` (`skill_year_id`, `name`) VALUES 
+INSERT INTO `people_skill_year` (`skill_year_id`, `name`) VALUES
 (1, '< 6 Months'),
 (2, '6 Mo - 2 yr'),
 (3, '2 yr - 5 yr'),
 (4, '5 yr - 10 yr'),
 (5, '> 10 years');
 
--- 
+--
 -- Dumping data for table `plugin_cvstracker_data_artifact`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `plugin_cvstracker_data_master`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `plugins`
--- 
+--
 
-INSERT INTO `plugins` (`plugin_id`, `plugin_name`, `plugin_desc`) VALUES 
+INSERT INTO `plugins` (`plugin_id`, `plugin_name`, `plugin_desc`) VALUES
 (1, 'scmsvn', 'SVN Plugin');
 
--- 
+--
 -- Dumping data for table `prdb_dbs`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `prdb_states`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `prdb_types`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_assigned_to`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_category`
--- 
+--
 
-INSERT INTO `project_category` (`category_id`, `group_project_id`, `category_name`) VALUES 
+INSERT INTO `project_category` (`category_id`, `group_project_id`, `category_name`) VALUES
 (100, 1, 'None');
 
--- 
+--
 -- Dumping data for table `project_counts_agg`
--- 
+--
 
-INSERT INTO `project_counts_agg` (`group_project_id`, `count`, `open_count`) VALUES 
+INSERT INTO `project_counts_agg` (`group_project_id`, `count`, `open_count`) VALUES
 (1, 1, 1);
 
--- 
+--
 -- Dumping data for table `project_dependencies`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_group_list`
--- 
+--
 
-INSERT INTO `project_group_list` (`group_project_id`, `group_id`, `project_name`, `is_public`, `description`, `send_all_posts_to`) VALUES 
+INSERT INTO `project_group_list` (`group_project_id`, `group_id`, `project_name`, `is_public`, `description`, `send_all_posts_to`) VALUES
 (1, 1, 'Default', 0, 'Default Project - Don''t Change', NULL);
 
--- 
+--
 -- Dumping data for table `project_history`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_messages`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_metric`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_metric_tmp1`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_perm`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_status`
--- 
+--
 
-INSERT INTO `project_status` (`status_id`, `status_name`) VALUES 
+INSERT INTO `project_status` (`status_id`, `status_name`) VALUES
 (1, 'Open'),
 (2, 'Closed');
 
--- 
+--
 -- Dumping data for table `project_sums_agg`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_task`
--- 
+--
 
-INSERT INTO `project_task` (`project_task_id`, `group_project_id`, `summary`, `details`, `percent_complete`, `priority`, `hours`, `start_date`, `end_date`, `created_by`, `status_id`, `category_id`, `duration`, `parent_id`, `last_modified_date`) VALUES 
+INSERT INTO `project_task` (`project_task_id`, `group_project_id`, `summary`, `details`, `percent_complete`, `priority`, `hours`, `start_date`, `end_date`, `created_by`, `status_id`, `category_id`, `duration`, `parent_id`, `last_modified_date`) VALUES
 (1, 1, '', '', 0, 0, 0, 0, 0, 100, 1, 100, 0, 0, 1108701981);
 
--- 
+--
 -- Dumping data for table `project_task_artifact`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_task_external_order`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `project_weekly_metric`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `prweb_vhost`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `role`
--- 
+--
 
-INSERT INTO `role` (`role_id`, `group_id`, `role_name`) VALUES 
+INSERT INTO `role` (`role_id`, `group_id`, `role_name`) VALUES
 (1, 1, 'Default'),
 (2, 2, 'Admin'),
 (3, 2, 'Senior Developer'),
@@ -838,11 +838,11 @@
 (20, 1, 'Doc Writer'),
 (21, 1, 'Support Tech');
 
--- 
+--
 -- Dumping data for table `role_setting`
--- 
+--
 
-INSERT INTO `role_setting` (`role_id`, `section_name`, `ref_id`, `value`) VALUES 
+INSERT INTO `role_setting` (`role_id`, `section_name`, `ref_id`, `value`) VALUES
 (2, 'projectadmin', 0, 'A'),
 (2, 'frs', 0, '1'),
 (2, 'scm', 0, '1'),
@@ -994,127 +994,127 @@
 (21, 'pmadmin', 0, '0'),
 (21, 'pm', 1, '0');
 
--- 
+--
 -- Dumping data for table `skills_data`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `skills_data_types`
--- 
+--
 
-INSERT INTO `skills_data_types` (`type_id`, `type_name`) VALUES 
+INSERT INTO `skills_data_types` (`type_id`, `type_name`) VALUES
 (1, 'Unspecified'),
 (2, 'Project'),
 (3, 'Training'),
 (4, 'Proposal'),
 (5, 'Investigation');
 
--- 
+--
 -- Dumping data for table `snippet`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `snippet_package`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `snippet_package_item`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `snippet_package_version`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `snippet_version`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_agg_logo_by_day`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_agg_logo_by_group`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_agg_pages_by_day`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_agg_site_by_group`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_cvs_group`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_cvs_user`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_project`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_project_developers`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_project_metric`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_project_months`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_site`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_site_months`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_site_pages_by_day`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_site_pages_by_month`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `stats_subd_pages`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `supported_languages`
--- 
+--
 
-INSERT INTO `supported_languages` (`language_id`, `name`, `filename`, `classname`, `language_code`) VALUES 
+INSERT INTO `supported_languages` (`language_id`, `name`, `filename`, `classname`, `language_code`) VALUES
 (1, 'English', 'English.class', 'English', 'en'),
 (2, 'Japanese', 'Japanese.class', 'Japanese', 'ja'),
 (4, 'Spanish', 'Spanish.class', 'Spanish', 'es'),
@@ -1132,11 +1132,11 @@
 (16, 'Korean', 'Korean.class', 'Korean', 'ko'),
 (17, 'Smpl.Chinese', 'SimplifiedChinese.class', 'SimplifiedChinese', 'zh-cn');
 
--- 
+--
 -- Dumping data for table `survey_question_types`
--- 
+--
 
-INSERT INTO `survey_question_types` (`id`, `type`) VALUES 
+INSERT INTO `survey_question_types` (`id`, `type`) VALUES
 (1, 'Radio Buttons 1-5'),
 (2, 'Text Area'),
 (3, 'Radio Buttons Yes/No'),
@@ -1144,50 +1144,50 @@
 (5, 'Text Field'),
 (100, 'None');
 
--- 
+--
 -- Dumping data for table `survey_questions`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `survey_rating_aggregate`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `survey_rating_response`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `survey_responses`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `surveys`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `themes`
--- 
+--
 
-INSERT INTO `themes` (`theme_id`, `dirname`, `fullname`, `enabled`) VALUES 
+INSERT INTO `themes` (`theme_id`, `dirname`, `fullname`, `enabled`) VALUES
 (1, 'gforge', 'Default Theme', 1),
 (2, 'ultralite', 'Ultra-Lite Text-only', 1),
 (3, 'osx', 'OSX', 1);
 
--- 
+--
 -- Dumping data for table `trove_agg`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `trove_cat`
--- 
+--
 
-INSERT INTO `trove_cat` (`trove_cat_id`, `version`, `parent`, `root_parent`, `shortname`, `fullname`, `description`, `count_subcat`, `count_subproj`, `fullpath`, `fullpath_ids`) VALUES 
+INSERT INTO `trove_cat` (`trove_cat_id`, `version`, `parent`, `root_parent`, `shortname`, `fullname`, `description`, `count_subcat`, `count_subproj`, `fullpath`, `fullpath_ids`) VALUES
 (1, 2000031601, 0, 0, 'audience', 'Intended Audience', 'The main class of people likely to be interested in this resource.', 0, 0, 'Intended Audience', '1'),
 (2, 2000032401, 1, 1, 'endusers', 'End Users/Desktop', 'Programs and resources for software end users. Software for the desktop.', 0, 0, 'Intended Audience :: End Users/Desktop', '1 :: 2'),
 (3, 2000041101, 1, 1, 'developers', 'Developers', 'Programs and resources for software developers, to include libraries.', 0, 0, 'Intended Audience :: Developers', '1 :: 3'),
@@ -1490,98 +1490,98 @@
 (301, 2001041701, 14, 13, 'nosl', 'Nokia Open Source License', 'Nokia Open Source License', 0, 0, 'License :: OSI Approved :: Nokia Open Source License', '13 :: 14 :: 301'),
 (302, 2001041701, 14, 13, 'sleepycat', 'Sleepycat License', 'Sleepycat License', 0, 0, 'License :: OSI Approved :: Sleepycat License', '13 :: 14 :: 302'),
 (303, 2001041701, 14, 13, 'nethack', 'Nethack General Public License', 'Nethack General Public License', 0, 0, 'License :: OSI Approved :: Nethack General Public License', '13 :: 14 :: 303');
-INSERT INTO `trove_cat` (`trove_cat_id`, `version`, `parent`, `root_parent`, `shortname`, `fullname`, `description`, `count_subcat`, `count_subproj`, `fullpath`, `fullpath_ids`) VALUES 
+INSERT INTO `trove_cat` (`trove_cat_id`, `version`, `parent`, `root_parent`, `shortname`, `fullname`, `description`, `count_subcat`, `count_subproj`, `fullpath`, `fullpath_ids`) VALUES
 (304, 2001041701, 189, 13, 'mpl10', 'Mozilla Public License 1.0', 'Mozilla Public License 1.0', 0, 0, 'License :: OSI Approved :: Mozilla Public License (MPL) :: Mozilla Public License 1.0', '13 :: 14 :: 189 :: 304'),
 (305, 2001041701, 189, 13, 'mpl11', 'Mozilla Public License 1.1', 'Mozilla Public License 1.1', 0, 0, 'License :: OSI Approved :: Mozilla Public License (MPL) :: Mozilla Public License 1.1', '13 :: 14 :: 189 :: 305');
 
--- 
+--
 -- Dumping data for table `trove_group_link`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `trove_treesums`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_bookmarks`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_diary`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_diary_monitor`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_group`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_metric`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_metric0`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_metric_history`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_plugin`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_preferences`
--- 
+--
 
-INSERT INTO `user_preferences` (`user_id`, `preference_name`, `dead1`, `set_date`, `preference_value`) VALUES 
+INSERT INTO `user_preferences` (`user_id`, `preference_name`, `dead1`, `set_date`, `preference_value`) VALUES
 (101, 'forum_style', NULL, 1144591173, 'ultimate|25');
 
--- 
+--
 -- Dumping data for table `user_ratings`
--- 
+--
 
 
--- 
+--
 -- Dumping data for table `user_session`
--- 
+--
 
-INSERT INTO `user_session` (`user_id`, `session_hash`, `ip_addr`, `time`) VALUES 
+INSERT INTO `user_session` (`user_id`, `session_hash`, `ip_addr`, `time`) VALUES
 (100, '867b0c76e3a110d924f98029a28baa95', '', 1096480068);
 
--- 
+--
 -- Dumping data for table `user_type`
--- 
+--
 
-INSERT INTO `user_type` (`type_id`, `type_name`) VALUES 
+INSERT INTO `user_type` (`type_id`, `type_name`) VALUES
 (1, 'User'),
 (2, 'UserPool');
 
--- 
+--
 -- Dumping data for table `users`
--- 
+--
 
-INSERT INTO `users` (`user_id`, `user_name`, `email`, `user_pw`, `realname`, `status`, `shell`, `unix_pw`, `unix_status`, `unix_uid`, `unix_box`, `add_date`, `confirm_hash`, `mail_siteupdates`, `mail_va`, `authorized_keys`, `email_new`, `people_view_skills`, `people_resume`, `timezone`, `language`, `block_ratings`, `jabber_address`, `jabber_only`, `address`, `phone`, `fax`, `title`, `firstname`, `lastname`, `address2`, `ccode`, `theme_id`, `type_id`, `unix_gid`) VALUES 
+INSERT INTO `users` (`user_id`, `user_name`, `email`, `user_pw`, `realname`, `status`, `shell`, `unix_pw`, `unix_status`, `unix_uid`, `unix_box`, `add_date`, `confirm_hash`, `mail_siteupdates`, `mail_va`, `authorized_keys`, `email_new`, `people_view_skills`, `people_resume`, `timezone`, `language`, `block_ratings`, `jabber_address`, `jabber_only`, `address`, `phone`, `fax`, `title`, `firstname`, `lastname`, `address2`, `ccode`, `theme_id`, `type_id`, `unix_gid`) VALUES
 (2,	'noreply', '', '', '', 'D', '/bin/bash', '', 'N', 20002, 'shell1', 0, NULL, 0, 0, NULL, NULL, 0, '', 'GMT', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'US', 1, 1, 20002),
 (100, 'None', 'noreply at sourceforge.net', '*********34343', 'Nobody', 'D', '/bin/bash', '', 'N', 20100, 'shell1', 0, NULL, 0, 0, NULL, NULL, 0, '', 'GMT', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, 'Nobody', NULL, NULL, 'US', 1, 1, 20100);
 
--- 
+--
 -- Dumping data for table `forum_thread_seq`
--- 
+--
 
 INSERT INTO `forum_thread_seq` (`value`) VALUES (1);
 

Modified: trunk/src/db/gforge-pgsql7.3.sql
===================================================================
--- trunk/src/db/gforge-pgsql7.3.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/gforge-pgsql7.3.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1541,10 +1541,10 @@
 CREATE FUNCTION forumgrouplist_insert_agg() RETURNS "trigger"
     AS '
 BEGIN
-        INSERT INTO forum_agg_msg_count (group_forum_id,count) 
+        INSERT INTO forum_agg_msg_count (group_forum_id,count)
                 VALUES (NEW.group_forum_id,0);
         RETURN NEW;
-END;    
+END;
 '
     LANGUAGE plpgsql;
 
@@ -1553,10 +1553,10 @@
 CREATE FUNCTION artifactgrouplist_insert_agg() RETURNS "trigger"
     AS '
 BEGIN
-    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count) 
+    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count)
         VALUES (NEW.group_artifact_id,0,0);
         RETURN NEW;
-END;    
+END;
 '
     LANGUAGE plpgsql;
 
@@ -1576,13 +1576,13 @@
 		--
 		IF OLD.status_id=3 THEN
 			-- No need to decrement counters on old tracker
-		ELSE 
+		ELSE
 			IF OLD.status_id=2 THEN
-				UPDATE artifact_counts_agg SET count=count-1 
+				UPDATE artifact_counts_agg SET count=count-1
 					WHERE group_artifact_id=OLD.group_artifact_id;
-			ELSE 
+			ELSE
 				IF OLD.status_id=1 THEN
-					UPDATE artifact_counts_agg SET count=count-1,open_count=open_count-1 
+					UPDATE artifact_counts_agg SET count=count-1,open_count=open_count-1
 						WHERE group_artifact_id=OLD.group_artifact_id;
 				END IF;
 			END IF;
@@ -1592,57 +1592,57 @@
 			--DO NOTHING
 		ELSE
 			IF NEW.status_id=2 THEN
-					UPDATE artifact_counts_agg SET count=count+1 
+					UPDATE artifact_counts_agg SET count=count+1
 						WHERE group_artifact_id=NEW.group_artifact_id;
 			ELSE
 				IF NEW.status_id=1 THEN
-					UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1 
+					UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1
 						WHERE group_artifact_id=NEW.group_artifact_id;
 				END IF;
 			END IF;
 		END IF;
 	ELSE
 		--
-		-- just need to evaluate the status flag and 
+		-- just need to evaluate the status flag and
 		-- increment/decrement the counter as necessary
 		--
 		IF NEW.status_id <> OLD.status_id THEN
 			IF NEW.status_id = 1 THEN
 				IF OLD.status_id=2 THEN
-					UPDATE artifact_counts_agg SET open_count=open_count+1 
+					UPDATE artifact_counts_agg SET open_count=open_count+1
 						WHERE group_artifact_id=NEW.group_artifact_id;
-				ELSE 
+				ELSE
 					IF OLD.status_id=3 THEN
-						UPDATE artifact_counts_agg SET open_count=open_count+1, count=count+1 
+						UPDATE artifact_counts_agg SET open_count=open_count+1, count=count+1
 							WHERE group_artifact_id=NEW.group_artifact_id;
 					END IF;
 				END IF;
 			ELSE
 				IF NEW.status_id = 2 THEN
 					IF OLD.status_id=1 THEN
-						UPDATE artifact_counts_agg SET open_count=open_count-1 
+						UPDATE artifact_counts_agg SET open_count=open_count-1
 							WHERE group_artifact_id=NEW.group_artifact_id;
 					ELSE
 						IF OLD.status_id=3 THEN
-							UPDATE artifact_counts_agg SET count=count+1 
+							UPDATE artifact_counts_agg SET count=count+1
 								WHERE group_artifact_id=NEW.group_artifact_id;
 						END IF;
 					END IF;
-				ELSE 
+				ELSE
 					IF NEW.status_id = 3 THEN
 						IF OLD.status_id=2 THEN
-							UPDATE artifact_counts_agg SET count=count-1 
+							UPDATE artifact_counts_agg SET count=count-1
 								WHERE group_artifact_id=NEW.group_artifact_id;
 						ELSE
 							IF OLD.status_id=1 THEN
-								UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1 
+								UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1
 									WHERE group_artifact_id=NEW.group_artifact_id;
 							END IF;
 						END IF;
 					END IF;
 				END IF;
 			END IF;
-		END IF;	
+		END IF;
 	END IF;
 	RETURN NEW;
 END;
@@ -3617,19 +3617,19 @@
 
 
 COPY supported_languages (language_id, name, filename, classname, language_code) FROM stdin;
-1	English	English.class	English	en   
-2	Japanese	Japanese.class	Japanese	ja   
-4	Spanish	Spanish.class	Spanish	es   
-5	Thai	Thai.class	Thai	th   
-6	German	German.class	German	de   
-8	Italian	Italian.class	Italian	it   
-10	Swedish	Swedish.class	Swedish	sv   
-12	Dutch	Dutch.class	Dutch	nl   
-14	Catalan	Catalan.class	Catalan	ca   
-22	Korean	Korean.class	Korean	ko   
-20	Bulgarian	Bulgarian.class	Bulgarian	bg   
-17	Russian	Russian.class	Russian	ru   
-7	French	French.class	French	fr   
+1	English	English.class	English	en
+2	Japanese	Japanese.class	Japanese	ja
+4	Spanish	Spanish.class	Spanish	es
+5	Thai	Thai.class	Thai	th
+6	German	German.class	German	de
+8	Italian	Italian.class	Italian	it
+10	Swedish	Swedish.class	Swedish	sv
+12	Dutch	Dutch.class	Dutch	nl
+14	Catalan	Catalan.class	Catalan	ca
+22	Korean	Korean.class	Korean	ko
+20	Bulgarian	Bulgarian.class	Bulgarian	bg
+17	Russian	Russian.class	Russian	ru
+7	French	French.class	French	fr
 23	Smpl.Chinese	SimplifiedChinese.class	SimplifiedChinese	zh-cn
 11	Trad.Chinese	Chinese.class	Chinese	zh-tw
 16	Pt. Brazilian	PortugueseBrazilian.class	PortugueseBrazilian	pt-br

Modified: trunk/src/db/gforge-struct-mysql.sql
===================================================================
--- trunk/src/db/gforge-struct-mysql.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/gforge-struct-mysql.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,21 +1,21 @@
 -- phpMyAdmin SQL Dump
 -- version 2.9.2
 -- http://www.phpmyadmin.net
--- 
+--
 -- Host: localhost
 -- Generation Time: Feb 23, 2007 at 08:35 PM
 -- Server version: 5.0.27
 -- PHP Version: 5.1.6
--- 
+--
 -- Database: `gforge`
--- 
+--
 -- CREATE DATABASE `gforge` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci;
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `canned_responses`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `canned_responses` (
   `response_id` int(11) NOT NULL auto_increment,
@@ -26,9 +26,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `db_images`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `db_images` (
   `id` int(11) NOT NULL auto_increment,
@@ -48,9 +48,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `doc_data`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `doc_data` (
   `docid` int(11) NOT NULL auto_increment,
@@ -73,9 +73,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `doc_groups`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `doc_groups` (
   `doc_group` int(11) NOT NULL auto_increment,
@@ -89,9 +89,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `doc_states`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `doc_states` (
   `stateid` int(11) NOT NULL auto_increment,
@@ -101,9 +101,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `filemodule_monitor`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `filemodule_monitor` (
   `id` int(11) NOT NULL auto_increment,
@@ -115,9 +115,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum` (
   `msg_id` int(11) NOT NULL auto_increment,
@@ -140,9 +140,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum_agg_msg_count`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum_agg_msg_count` (
   `group_forum_id` int(11) NOT NULL default '0',
@@ -151,9 +151,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum_group_list`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum_group_list` (
   `group_forum_id` int(11) NOT NULL auto_increment,
@@ -170,9 +170,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum_monitored_forums`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum_monitored_forums` (
   `monitor_id` int(11) NOT NULL auto_increment,
@@ -184,9 +184,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum_saved_place`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum_saved_place` (
   `saved_place_id` int(11) NOT NULL auto_increment,
@@ -198,9 +198,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_file`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_file` (
   `file_id` int(11) NOT NULL auto_increment,
@@ -218,9 +218,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_filetype`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_filetype` (
   `type_id` int(11) NOT NULL auto_increment,
@@ -230,9 +230,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_package`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_package` (
   `package_id` int(11) NOT NULL auto_increment,
@@ -246,9 +246,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_processor`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_processor` (
   `processor_id` int(11) NOT NULL auto_increment,
@@ -258,9 +258,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_release`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_release` (
   `release_id` int(11) NOT NULL auto_increment,
@@ -278,9 +278,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_status`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_status` (
   `status_id` int(11) NOT NULL auto_increment,
@@ -290,9 +290,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `group_history`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `group_history` (
   `group_history_id` int(11) NOT NULL auto_increment,
@@ -307,9 +307,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `groups`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `groups` (
   `group_id` int(11) NOT NULL auto_increment,
@@ -353,9 +353,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `mail_group_list`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `mail_group_list` (
   `group_list_id` int(11) NOT NULL auto_increment,
@@ -372,9 +372,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `news_bytes`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `news_bytes` (
   `id` int(11) NOT NULL auto_increment,
@@ -395,9 +395,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_job`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_job` (
   `job_id` int(11) NOT NULL auto_increment,
@@ -414,9 +414,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_job_category`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_job_category` (
   `category_id` int(11) NOT NULL auto_increment,
@@ -427,9 +427,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_job_inventory`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_job_inventory` (
   `job_inventory_id` int(11) NOT NULL auto_increment,
@@ -442,9 +442,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_job_status`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_job_status` (
   `status_id` int(11) NOT NULL auto_increment,
@@ -454,9 +454,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_skill`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_skill` (
   `skill_id` int(11) NOT NULL auto_increment,
@@ -466,9 +466,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_skill_inventory`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_skill_inventory` (
   `skill_inventory_id` int(11) NOT NULL auto_increment,
@@ -481,9 +481,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_skill_level`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_skill_level` (
   `skill_level_id` int(11) NOT NULL auto_increment,
@@ -493,9 +493,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `people_skill_year`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `people_skill_year` (
   `skill_year_id` int(11) NOT NULL auto_increment,
@@ -505,9 +505,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_assigned_to`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_assigned_to` (
   `project_assigned_id` int(11) NOT NULL auto_increment,
@@ -519,9 +519,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_dependencies`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_dependencies` (
   `project_depend_id` int(11) NOT NULL auto_increment,
@@ -534,9 +534,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_group_list`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_group_list` (
   `group_project_id` int(11) NOT NULL auto_increment,
@@ -551,9 +551,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_history`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_history` (
   `project_history_id` int(11) NOT NULL auto_increment,
@@ -568,9 +568,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_metric`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_metric` (
   `ranking` int(11) NOT NULL auto_increment,
@@ -582,9 +582,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_metric_tmp1`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_metric_tmp1` (
   `ranking` int(11) NOT NULL auto_increment,
@@ -595,9 +595,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_status`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_status` (
   `status_id` int(11) NOT NULL auto_increment,
@@ -607,9 +607,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_task`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_task` (
   `project_task_id` int(11) NOT NULL auto_increment,
@@ -633,9 +633,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_weekly_metric`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_weekly_metric` (
   `ranking` int(11) NOT NULL auto_increment,
@@ -648,9 +648,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_session`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_session` (
   `user_id` int(11) NOT NULL default '0',
@@ -664,9 +664,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `snippet`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `snippet` (
   `snippet_id` int(11) NOT NULL auto_increment,
@@ -684,9 +684,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `snippet_package`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `snippet_package` (
   `snippet_package_id` int(11) NOT NULL auto_increment,
@@ -702,9 +702,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `snippet_package_item`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `snippet_package_item` (
   `snippet_package_item_id` int(11) NOT NULL auto_increment,
@@ -716,9 +716,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `snippet_package_version`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `snippet_package_version` (
   `snippet_package_version_id` int(11) NOT NULL auto_increment,
@@ -733,9 +733,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `snippet_version`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `snippet_version` (
   `snippet_version_id` int(11) NOT NULL auto_increment,
@@ -751,9 +751,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_agg_logo_by_day`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_agg_logo_by_day` (
   `day` int(11) default NULL,
@@ -762,9 +762,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_agg_pages_by_day`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_agg_pages_by_day` (
   `day` int(11) NOT NULL default '0',
@@ -774,9 +774,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_site_pages_by_month`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_site_pages_by_month` (
   `month` int(11) default NULL,
@@ -785,9 +785,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `survey_question_types`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `survey_question_types` (
   `id` int(11) NOT NULL auto_increment,
@@ -797,9 +797,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `survey_questions`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `survey_questions` (
   `question_id` int(11) NOT NULL auto_increment,
@@ -812,9 +812,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `survey_rating_aggregate`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `survey_rating_aggregate` (
   `type` int(11) NOT NULL default '0',
@@ -826,9 +826,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `survey_rating_response`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `survey_rating_response` (
   `user_id` int(11) NOT NULL default '0',
@@ -842,9 +842,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `survey_responses`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `survey_responses` (
   `user_id` int(11) NOT NULL default '0',
@@ -860,9 +860,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `surveys`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `surveys` (
   `survey_id` int(11) NOT NULL auto_increment,
@@ -876,9 +876,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `trove_cat`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `trove_cat` (
   `trove_cat_id` int(11) NOT NULL auto_increment,
@@ -898,9 +898,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `trove_group_link`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `trove_group_link` (
   `trove_group_id` int(11) NOT NULL auto_increment,
@@ -914,9 +914,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_bookmarks`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_bookmarks` (
   `bookmark_id` int(11) NOT NULL auto_increment,
@@ -929,9 +929,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_diary`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_diary` (
   `id` int(11) NOT NULL auto_increment,
@@ -946,9 +946,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_diary_monitor`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_diary_monitor` (
   `monitor_id` int(11) NOT NULL auto_increment,
@@ -960,9 +960,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_group`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_group` (
   `user_group_id` int(11) NOT NULL auto_increment,
@@ -983,9 +983,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_metric`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_metric` (
   `ranking` int(11) NOT NULL auto_increment,
@@ -1002,9 +1002,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_metric0`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_metric0` (
   `ranking` int(11) NOT NULL auto_increment,
@@ -1021,9 +1021,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_preferences`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_preferences` (
   `user_id` int(11) NOT NULL default '0',
@@ -1036,9 +1036,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_ratings`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_ratings` (
   `rated_by` int(11) NOT NULL default '0',
@@ -1050,9 +1050,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `users`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `users` (
   `user_id` int(11) NOT NULL auto_increment,
@@ -1097,9 +1097,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_sums_agg`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_sums_agg` (
   `group_id` int(11) NOT NULL default '0',
@@ -1109,9 +1109,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `prdb_dbs`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `prdb_dbs` (
   `dbid` int(11) NOT NULL auto_increment,
@@ -1130,9 +1130,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `prdb_states`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `prdb_states` (
   `stateid` int(11) NOT NULL default '0',
@@ -1142,9 +1142,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `prdb_types`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `prdb_types` (
   `dbtypeid` int(11) NOT NULL default '0',
@@ -1154,9 +1154,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `prweb_vhost`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `prweb_vhost` (
   `vhostid` int(11) NOT NULL auto_increment,
@@ -1171,9 +1171,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_group_list`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_group_list` (
   `group_artifact_id` int(11) NOT NULL auto_increment,
@@ -1197,9 +1197,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_perm`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_perm` (
   `id` int(11) NOT NULL auto_increment,
@@ -1212,22 +1212,22 @@
 
 
 CREATE OR REPLACE VIEW `artifactperm_user_vw` AS
-    SELECT ap.id, ap.group_artifact_id, ap.user_id, ap.perm_level, users.user_name, users.realname 
-	FROM artifact_perm AS ap, users 
+    SELECT ap.id, ap.group_artifact_id, ap.user_id, ap.perm_level, users.user_name, users.realname
+	FROM artifact_perm AS ap, users
 	WHERE users.user_id = ap.user_id;
 
 
 CREATE OR REPLACE VIEW `artifactperm_artgrouplist_vw` AS
-    SELECT agl.group_artifact_id, agl.name, agl.description, agl.group_id, ap.user_id, ap.perm_level 
-	FROM artifact_perm AS ap, artifact_group_list AS agl 
+    SELECT agl.group_artifact_id, agl.name, agl.description, agl.group_id, ap.user_id, ap.perm_level
+	FROM artifact_perm AS ap, artifact_group_list AS agl
 	WHERE ap.group_artifact_id = agl.group_artifact_id;
 
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_status`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_status` (
   `id` int(11) NOT NULL auto_increment,
@@ -1237,9 +1237,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact` (
   `artifact_id` int(11) NOT NULL auto_increment,
@@ -1265,9 +1265,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_history`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_history` (
   `id` int(11) NOT NULL auto_increment,
@@ -1282,16 +1282,16 @@
 
 
 CREATE OR REPLACE VIEW `artifact_history_user_vw` AS
-    SELECT ah.id, ah.artifact_id, ah.field_name, ah.old_value, ah.entrydate, users.user_name 
-	FROM artifact_history AS ah, users 
+    SELECT ah.id, ah.artifact_id, ah.field_name, ah.old_value, ah.entrydate, users.user_name
+	FROM artifact_history AS ah, users
 	WHERE ah.mod_by = users.user_id;
 
-	
+
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_file`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_file` (
   `id` int(11) NOT NULL auto_increment,
@@ -1309,16 +1309,16 @@
 
 
 CREATE OR REPLACE VIEW `artifact_file_user_vw` AS
-    SELECT af.id, af.artifact_id, af.description, af.bin_data, af.filename, af.filesize, af.filetype, af.adddate, af.submitted_by, users.user_name, users.realname 
-	FROM artifact_file AS af, users 
+    SELECT af.id, af.artifact_id, af.description, af.bin_data, af.filename, af.filesize, af.filetype, af.adddate, af.submitted_by, users.user_name, users.realname
+	FROM artifact_file AS af, users
 	WHERE af.submitted_by = users.user_id;
 
-	
+
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_message`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_message` (
   `id` int(11) NOT NULL auto_increment,
@@ -1333,16 +1333,16 @@
 
 
 CREATE OR REPLACE VIEW `artifact_message_user_vw` AS
-    SELECT am.id, am.artifact_id, am.from_email, am.body, am.adddate, users.user_id, users.email, users.user_name, users.realname 
-	FROM artifact_message AS am, users 
+    SELECT am.id, am.artifact_id, am.from_email, am.body, am.adddate, users.user_id, users.email, users.user_name, users.realname
+	FROM artifact_message AS am, users
 	WHERE am.submitted_by = users.user_id;
 
-	
+
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_monitor`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_monitor` (
   `id` int(11) NOT NULL auto_increment,
@@ -1355,9 +1355,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_canned_responses`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_canned_responses` (
   `id` int(11) NOT NULL auto_increment,
@@ -1370,9 +1370,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_counts_agg`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_counts_agg` (
   `group_artifact_id` int(11) NOT NULL default '0',
@@ -1382,9 +1382,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_site_pages_by_day`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_site_pages_by_day` (
   `month` int(11) default NULL,
@@ -1395,9 +1395,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `massmail_queue`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `massmail_queue` (
   `id` int(11) NOT NULL auto_increment,
@@ -1413,9 +1413,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_agg_site_by_group`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_agg_site_by_group` (
   `month` int(11) default NULL,
@@ -1427,9 +1427,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_project_metric`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_project_metric` (
   `month` int(11) NOT NULL default '0',
@@ -1442,9 +1442,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_agg_logo_by_group`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_agg_logo_by_group` (
   `month` int(11) default NULL,
@@ -1456,9 +1456,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_subd_pages`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_subd_pages` (
   `month` int(11) NOT NULL default '0',
@@ -1470,9 +1470,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_cvs_user`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_cvs_user` (
   `month` int(11) NOT NULL default '0',
@@ -1486,9 +1486,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_cvs_group`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_cvs_group` (
   `month` int(11) NOT NULL default '0',
@@ -1502,9 +1502,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_project_developers`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_project_developers` (
   `month` int(11) NOT NULL default '0',
@@ -1516,9 +1516,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_project`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_project` (
   `month` int(11) NOT NULL default '0',
@@ -1543,9 +1543,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_site`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_site` (
   `month` int(11) default NULL,
@@ -1560,9 +1560,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `activity_log`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `activity_log` (
   `day` int(11) NOT NULL default '0',
@@ -1578,9 +1578,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_metric_history`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_metric_history` (
   `month` int(11) NOT NULL default '0',
@@ -1593,9 +1593,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_dlstats_filetotal_agg`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_dlstats_filetotal_agg` (
   `file_id` int(11) NOT NULL default '0',
@@ -1604,9 +1604,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_project_months`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_project_months` (
   `month` int(11) default NULL,
@@ -1642,9 +1642,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `stats_site_months`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `stats_site_months` (
   `month` int(11) default NULL,
@@ -1671,9 +1671,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `trove_agg`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `trove_agg` (
   `trove_cat_id` int(11) default NULL,
@@ -1690,9 +1690,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `trove_treesums`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `trove_treesums` (
   `trove_treesums_id` int(11) NOT NULL auto_increment,
@@ -1704,9 +1704,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `frs_dlstats_file`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `frs_dlstats_file` (
   `ip_address` varchar(25) default NULL,
@@ -1718,9 +1718,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `group_cvs_history`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `group_cvs_history` (
   `id` int(11) NOT NULL auto_increment,
@@ -1736,9 +1736,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `themes`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `themes` (
   `theme_id` int(11) NOT NULL auto_increment,
@@ -1751,9 +1751,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `supported_languages`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `supported_languages` (
   `language_id` int(11) NOT NULL auto_increment,
@@ -1767,9 +1767,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `skills_data_types`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `skills_data_types` (
   `type_id` int(11) NOT NULL auto_increment,
@@ -1779,9 +1779,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `skills_data`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `skills_data` (
   `skills_data_id` int(11) NOT NULL auto_increment,
@@ -1796,16 +1796,16 @@
 
 
 CREATE OR REPLACE VIEW `frs_file_vw` AS
-    SELECT frs_file.file_id, frs_file.filename, frs_file.release_id, frs_file.type_id, frs_file.processor_id, frs_file.release_time, frs_file.file_size, frs_file.post_date, frs_filetype.name AS filetype, frs_processor.name AS processor, frs_dlstats_filetotal_agg.downloads 
-	FROM frs_filetype, frs_processor, (frs_file LEFT JOIN frs_dlstats_filetotal_agg ON frs_dlstats_filetotal_agg.file_id = frs_file.file_id) 
+    SELECT frs_file.file_id, frs_file.filename, frs_file.release_id, frs_file.type_id, frs_file.processor_id, frs_file.release_time, frs_file.file_size, frs_file.post_date, frs_filetype.name AS filetype, frs_processor.name AS processor, frs_dlstats_filetotal_agg.downloads
+	FROM frs_filetype, frs_processor, (frs_file LEFT JOIN frs_dlstats_filetotal_agg ON frs_dlstats_filetotal_agg.file_id = frs_file.file_id)
 	WHERE frs_filetype.type_id = frs_file.type_id AND frs_processor.processor_id = frs_file.processor_id;
 
-	
+
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_category`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_category` (
   `category_id` int(11) NOT NULL auto_increment,
@@ -1818,9 +1818,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_task_artifact`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_task_artifact` (
   `project_task_id` int(11) NOT NULL default '0',
@@ -1831,16 +1831,16 @@
 
 
 CREATE OR REPLACE VIEW `project_history_user_vw` AS
-    SELECT users.realname, users.email, users.user_name, project_history.project_history_id, project_history.project_task_id, project_history.field_name, project_history.old_value, project_history.mod_by, project_history.mod_date 
-	FROM users, project_history 
+    SELECT users.realname, users.email, users.user_name, project_history.project_history_id, project_history.project_task_id, project_history.field_name, project_history.old_value, project_history.mod_by, project_history.mod_date
+	FROM users, project_history
 	WHERE project_history.mod_by = users.user_id;
 
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_messages`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_messages` (
   `project_message_id` int(11) NOT NULL auto_increment,
@@ -1855,92 +1855,92 @@
 
 
 CREATE OR REPLACE VIEW `project_message_user_vw` AS
-    SELECT users.realname, users.email, users.user_name, project_messages.project_message_id, project_messages.project_task_id, project_messages.body, project_messages.posted_by, project_messages.postdate 
-	FROM users, project_messages 
+    SELECT users.realname, users.email, users.user_name, project_messages.project_message_id, project_messages.project_task_id, project_messages.body, project_messages.posted_by, project_messages.postdate
+	FROM users, project_messages
 	WHERE project_messages.posted_by = users.user_id;
 
 
 CREATE OR REPLACE VIEW `frs_dlstats_file_agg_vw` AS
-    SELECT frs_dlstats_file.`month`, frs_dlstats_file.`day`, frs_dlstats_file.file_id, count(*) AS downloads 
-	FROM frs_dlstats_file 
+    SELECT frs_dlstats_file.`month`, frs_dlstats_file.`day`, frs_dlstats_file.file_id, count(*) AS downloads
+	FROM frs_dlstats_file
 	GROUP BY frs_dlstats_file.`month`, frs_dlstats_file.`day`, frs_dlstats_file.file_id;
 
 
 CREATE OR REPLACE VIEW `frs_dlstats_grouptotal_vw` AS
-    SELECT frs_package.group_id, sum(frs_dlstats_filetotal_agg.downloads) AS downloads 
-	FROM frs_package, frs_release, frs_file, frs_dlstats_filetotal_agg 
-	WHERE frs_package.package_id = frs_release.package_id AND frs_release.release_id = frs_file.release_id AND frs_file.file_id = frs_dlstats_filetotal_agg.file_id 
+    SELECT frs_package.group_id, sum(frs_dlstats_filetotal_agg.downloads) AS downloads
+	FROM frs_package, frs_release, frs_file, frs_dlstats_filetotal_agg
+	WHERE frs_package.package_id = frs_release.package_id AND frs_release.release_id = frs_file.release_id AND frs_file.file_id = frs_dlstats_filetotal_agg.file_id
 	GROUP BY frs_package.group_id;
 
 
 CREATE OR REPLACE VIEW `frs_dlstats_group_vw` AS
-    SELECT frs_package.group_id, fdfa.`month`, fdfa.`day`, sum(fdfa.downloads) AS downloads 
-	FROM frs_package, frs_release, frs_file, frs_dlstats_file_agg_vw AS fdfa 
+    SELECT frs_package.group_id, fdfa.`month`, fdfa.`day`, sum(fdfa.downloads) AS downloads
+	FROM frs_package, frs_release, frs_file, frs_dlstats_file_agg_vw AS fdfa
 	WHERE frs_package.package_id = frs_release.package_id AND frs_release.release_id = frs_file.release_id AND frs_file.file_id = fdfa.file_id
 	GROUP BY frs_package.group_id, fdfa.`month`, fdfa.`day`;
 
 
 CREATE OR REPLACE VIEW `stats_project_vw` AS
-    SELECT spd.group_id, spd.`month`, spd.`day`, spd.developers, spm.ranking AS group_ranking, spm.percentile AS group_metric, salbg.count AS logo_showings, fdga.downloads, sasbg.count AS site_views, ssp.pages AS subdomain_views, (CASE WHEN (sasbg.count IS NOT NULL) THEN sasbg.count WHEN (0 IS NOT NULL) THEN 0 ELSE NULL END + CASE WHEN (ssp.pages IS NOT NULL) THEN ssp.pages WHEN (0 IS NOT NULL) THEN 0 ELSE NULL END) AS page_views, sp.file_releases, sp.msg_posted, sp.msg_uniq_auth, sp.bugs_opened, sp.bugs_closed, sp.support_opened, sp.support_closed, sp.patches_opened, sp.patches_closed, sp.artifacts_opened, sp.artifacts_closed, sp.tasks_opened, sp.tasks_closed, sp.help_requests, scg.checkouts AS cvs_checkouts, scg.commits AS cvs_commits, scg.adds AS cvs_adds 
-	FROM (((((((stats_project_developers AS spd 
-		LEFT JOIN stats_project AS sp USING (`month`, `day`, group_id)) 
-		LEFT JOIN stats_project_metric AS spm USING (`month`, `day`, group_id)) 
-		LEFT JOIN stats_cvs_group AS scg USING (`month`, `day`, group_id)) 
-		LEFT JOIN stats_agg_site_by_group AS sasbg USING (`month`, `day`, group_id)) 
-		LEFT JOIN stats_agg_logo_by_group AS salbg USING (`month`, `day`, group_id)) 
-		LEFT JOIN stats_subd_pages AS ssp USING (`month`, `day`, group_id)) 
+    SELECT spd.group_id, spd.`month`, spd.`day`, spd.developers, spm.ranking AS group_ranking, spm.percentile AS group_metric, salbg.count AS logo_showings, fdga.downloads, sasbg.count AS site_views, ssp.pages AS subdomain_views, (CASE WHEN (sasbg.count IS NOT NULL) THEN sasbg.count WHEN (0 IS NOT NULL) THEN 0 ELSE NULL END + CASE WHEN (ssp.pages IS NOT NULL) THEN ssp.pages WHEN (0 IS NOT NULL) THEN 0 ELSE NULL END) AS page_views, sp.file_releases, sp.msg_posted, sp.msg_uniq_auth, sp.bugs_opened, sp.bugs_closed, sp.support_opened, sp.support_closed, sp.patches_opened, sp.patches_closed, sp.artifacts_opened, sp.artifacts_closed, sp.tasks_opened, sp.tasks_closed, sp.help_requests, scg.checkouts AS cvs_checkouts, scg.commits AS cvs_commits, scg.adds AS cvs_adds
+	FROM (((((((stats_project_developers AS spd
+		LEFT JOIN stats_project AS sp USING (`month`, `day`, group_id))
+		LEFT JOIN stats_project_metric AS spm USING (`month`, `day`, group_id))
+		LEFT JOIN stats_cvs_group AS scg USING (`month`, `day`, group_id))
+		LEFT JOIN stats_agg_site_by_group AS sasbg USING (`month`, `day`, group_id))
+		LEFT JOIN stats_agg_logo_by_group AS salbg USING (`month`, `day`, group_id))
+		LEFT JOIN stats_subd_pages AS ssp USING (`month`, `day`, group_id))
 		LEFT JOIN frs_dlstats_group_vw AS fdga USING (`month`, `day`, group_id));
 
 
 CREATE OR REPLACE VIEW `stats_project_all_vw` AS
     SELECT
 		stats_project_months.group_id,
-		avg(stats_project_months.developers) AS developers, 
-		avg(stats_project_months.group_ranking) AS group_ranking, 
-		avg(stats_project_months.group_metric) AS group_metric, 
-		sum(stats_project_months.logo_showings) AS logo_showings, 
-		sum(stats_project_months.downloads) AS downloads, 
-		sum(stats_project_months.site_views) AS site_views, 
-		sum(stats_project_months.subdomain_views) AS subdomain_views, 
-		sum(stats_project_months.page_views) AS page_views, 
-		sum(stats_project_months.file_releases) AS file_releases, 
-		sum(stats_project_months.msg_posted) AS msg_posted, 
-		avg(stats_project_months.msg_uniq_auth) AS msg_uniq_auth, 
-		sum(stats_project_months.bugs_opened) AS bugs_opened, 
-		sum(stats_project_months.bugs_closed) AS bugs_closed, 
-		sum(stats_project_months.support_opened) AS support_opened, 
-		sum(stats_project_months.support_closed) AS support_closed, 
-		sum(stats_project_months.patches_opened) AS patches_opened, 
-		sum(stats_project_months.patches_closed) AS patches_closed, 
-		sum(stats_project_months.artifacts_opened) AS artifacts_opened, 
-		sum(stats_project_months.artifacts_closed) AS artifacts_closed, 
-		sum(stats_project_months.tasks_opened) AS tasks_opened, 
-		sum(stats_project_months.tasks_closed) AS tasks_closed, 
-		sum(stats_project_months.help_requests) AS help_requests, 
-		sum(stats_project_months.cvs_checkouts) AS cvs_checkouts, 
-		sum(stats_project_months.cvs_commits) AS cvs_commits, 
-		sum(stats_project_months.cvs_adds) AS cvs_adds 
-	FROM stats_project_months 
+		avg(stats_project_months.developers) AS developers,
+		avg(stats_project_months.group_ranking) AS group_ranking,
+		avg(stats_project_months.group_metric) AS group_metric,
+		sum(stats_project_months.logo_showings) AS logo_showings,
+		sum(stats_project_months.downloads) AS downloads,
+		sum(stats_project_months.site_views) AS site_views,
+		sum(stats_project_months.subdomain_views) AS subdomain_views,
+		sum(stats_project_months.page_views) AS page_views,
+		sum(stats_project_months.file_releases) AS file_releases,
+		sum(stats_project_months.msg_posted) AS msg_posted,
+		avg(stats_project_months.msg_uniq_auth) AS msg_uniq_auth,
+		sum(stats_project_months.bugs_opened) AS bugs_opened,
+		sum(stats_project_months.bugs_closed) AS bugs_closed,
+		sum(stats_project_months.support_opened) AS support_opened,
+		sum(stats_project_months.support_closed) AS support_closed,
+		sum(stats_project_months.patches_opened) AS patches_opened,
+		sum(stats_project_months.patches_closed) AS patches_closed,
+		sum(stats_project_months.artifacts_opened) AS artifacts_opened,
+		sum(stats_project_months.artifacts_closed) AS artifacts_closed,
+		sum(stats_project_months.tasks_opened) AS tasks_opened,
+		sum(stats_project_months.tasks_closed) AS tasks_closed,
+		sum(stats_project_months.help_requests) AS help_requests,
+		sum(stats_project_months.cvs_checkouts) AS cvs_checkouts,
+		sum(stats_project_months.cvs_commits) AS cvs_commits,
+		sum(stats_project_months.cvs_adds) AS cvs_adds
+	FROM stats_project_months
 	GROUP BY stats_project_months.group_id;
 
 
 CREATE OR REPLACE VIEW `stats_site_vw` AS
-    SELECT p.`month`, p.`day`, sspbd.site_page_views, sum(p.downloads) AS downloads, sum(p.subdomain_views) AS subdomain_views, sum(p.msg_posted) AS msg_posted, sum(p.bugs_opened) AS bugs_opened, sum(p.bugs_closed) AS bugs_closed, sum(p.support_opened) AS support_opened, sum(p.support_closed) AS support_closed, sum(p.patches_opened) AS patches_opened, sum(p.patches_closed) AS patches_closed, sum(p.artifacts_opened) AS artifacts_opened, sum(p.artifacts_closed) AS artifacts_closed, sum(p.tasks_opened) AS tasks_opened, sum(p.tasks_closed) AS tasks_closed, sum(p.help_requests) AS help_requests, sum(p.cvs_checkouts) AS cvs_checkouts, sum(p.cvs_commits) AS cvs_commits, sum(p.cvs_adds) AS cvs_adds 
-	FROM stats_project_vw AS p, stats_site_pages_by_day AS sspbd 
+    SELECT p.`month`, p.`day`, sspbd.site_page_views, sum(p.downloads) AS downloads, sum(p.subdomain_views) AS subdomain_views, sum(p.msg_posted) AS msg_posted, sum(p.bugs_opened) AS bugs_opened, sum(p.bugs_closed) AS bugs_closed, sum(p.support_opened) AS support_opened, sum(p.support_closed) AS support_closed, sum(p.patches_opened) AS patches_opened, sum(p.patches_closed) AS patches_closed, sum(p.artifacts_opened) AS artifacts_opened, sum(p.artifacts_closed) AS artifacts_closed, sum(p.tasks_opened) AS tasks_opened, sum(p.tasks_closed) AS tasks_closed, sum(p.help_requests) AS help_requests, sum(p.cvs_checkouts) AS cvs_checkouts, sum(p.cvs_commits) AS cvs_commits, sum(p.cvs_adds) AS cvs_adds
+	FROM stats_project_vw AS p, stats_site_pages_by_day AS sspbd
 	WHERE p.`month` = sspbd.`month` AND p.`day` = sspbd.`day`
 	GROUP BY p.`month`, p.`day`, sspbd.site_page_views;
 
 
 CREATE OR REPLACE VIEW `stats_site_all_vw` AS
-    SELECT sum(stats_site_months.site_page_views) AS site_page_views, sum(stats_site_months.downloads) AS downloads, sum(stats_site_months.subdomain_views) AS subdomain_views, sum(stats_site_months.msg_posted) AS msg_posted, sum(stats_site_months.bugs_opened) AS bugs_opened, sum(stats_site_months.bugs_closed) AS bugs_closed, sum(stats_site_months.support_opened) AS support_opened, sum(stats_site_months.support_closed) AS support_closed, sum(stats_site_months.patches_opened) AS patches_opened, sum(stats_site_months.patches_closed) AS patches_closed, sum(stats_site_months.artifacts_opened) AS artifacts_opened, sum(stats_site_months.artifacts_closed) AS artifacts_closed, sum(stats_site_months.tasks_opened) AS tasks_opened, sum(stats_site_months.tasks_closed) AS tasks_closed, sum(stats_site_months.help_requests) AS help_requests, sum(stats_site_months.cvs_checkouts) AS cvs_checkouts, sum(stats_site_months.cvs_commits) AS cvs_commits, sum(stats_site_months.cvs_adds) AS cvs_adds 
+    SELECT sum(stats_site_months.site_page_views) AS site_page_views, sum(stats_site_months.downloads) AS downloads, sum(stats_site_months.subdomain_views) AS subdomain_views, sum(stats_site_months.msg_posted) AS msg_posted, sum(stats_site_months.bugs_opened) AS bugs_opened, sum(stats_site_months.bugs_closed) AS bugs_closed, sum(stats_site_months.support_opened) AS support_opened, sum(stats_site_months.support_closed) AS support_closed, sum(stats_site_months.patches_opened) AS patches_opened, sum(stats_site_months.patches_closed) AS patches_closed, sum(stats_site_months.artifacts_opened) AS artifacts_opened, sum(stats_site_months.artifacts_closed) AS artifacts_closed, sum(stats_site_months.tasks_opened) AS tasks_opened, sum(stats_site_months.tasks_closed) AS tasks_closed, sum(stats_site_months.help_requests) AS help_requests, sum(stats_site_months.cvs_checkouts) AS cvs_checkouts, sum(stats_site_months.cvs_commits) AS cvs_commits, sum(stats_site_months.cvs_adds) AS cvs_adds
 	FROM stats_site_months;
 
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `plugins`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `plugins` (
   `plugin_id` int(11) NOT NULL auto_increment,
@@ -1952,9 +1952,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `group_plugin`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `group_plugin` (
   `group_plugin_id` int(11) NOT NULL auto_increment,
@@ -1966,9 +1966,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_plugin`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_plugin` (
   `user_plugin_id` int(11) NOT NULL auto_increment,
@@ -1979,9 +1979,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `cron_history`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `cron_history` (
   `rundate` int(11) NOT NULL default '0',
@@ -1994,9 +1994,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `country_code`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `country_code` (
   `country_name` varchar(80) default NULL,
@@ -2005,9 +2005,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `licenses`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `licenses` (
   `license_id` varchar(10) NOT NULL default '',
@@ -2016,9 +2016,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `user_type`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `user_type` (
   `type_id` int(11) NOT NULL auto_increment,
@@ -2028,9 +2028,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `role`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `role` (
   `role_id` int(10) NOT NULL auto_increment,
@@ -2042,9 +2042,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_perm`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_perm` (
   `id` varchar(10) NOT NULL default '',
@@ -2056,9 +2056,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum_perm`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum_perm` (
   `id` int(11) NOT NULL auto_increment,
@@ -2070,9 +2070,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `role_setting`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `role_setting` (
   `role_id` int(11) NOT NULL default '0',
@@ -2083,9 +2083,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_extra_field_list`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_extra_field_list` (
   `extra_field_id` int(11) NOT NULL auto_increment,
@@ -2102,9 +2102,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_extra_field_elements`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_extra_field_elements` (
   `element_id` int(11) NOT NULL auto_increment,
@@ -2117,9 +2117,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_extra_field_data`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_extra_field_data` (
   `data_id` int(11) NOT NULL auto_increment,
@@ -2132,9 +2132,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_counts_agg`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_counts_agg` (
   `group_project_id` int(11) NOT NULL default '0',
@@ -2144,16 +2144,16 @@
 
 
 CREATE OR REPLACE VIEW `project_group_list_vw` AS
-    SELECT project_group_list.group_project_id, group_id, project_name, is_public, description, send_all_posts_to, `count`, open_count 
+    SELECT project_group_list.group_project_id, group_id, project_name, is_public, description, send_all_posts_to, `count`, open_count
 	FROM (project_group_list
 	LEFT JOIN project_counts_agg ON project_counts_agg.group_project_id = project_group_list.group_project_id);
 
-	
+
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `project_task_external_order`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `project_task_external_order` (
   `project_task_id` int(11) NOT NULL default '0',
@@ -2162,25 +2162,25 @@
 
 
 CREATE OR REPLACE VIEW `project_depend_vw` AS
-    SELECT pt.project_task_id, pd.is_dependent_on_task_id, pd.link_type, pt.end_date, pt.start_date 
+    SELECT pt.project_task_id, pd.is_dependent_on_task_id, pd.link_type, pt.end_date, pt.start_date
 	FROM (project_task pt NATURAL JOIN project_dependencies pd);
 
 
 CREATE OR REPLACE VIEW `project_dependon_vw` AS
-    SELECT pd.project_task_id, pd.is_dependent_on_task_id, pd.link_type, pt.end_date, pt.start_date 
-	FROM (project_task AS pt 
+    SELECT pd.project_task_id, pd.is_dependent_on_task_id, pd.link_type, pt.end_date, pt.start_date
+	FROM (project_task AS pt
 		LEFT JOIN project_dependencies AS pd ON pd.is_dependent_on_task_id = pt.project_task_id)
-	UNION 
-    SELECT pd.project_task_id, pd.is_dependent_on_task_id, pd.link_type, pt.end_date, pt.start_date 
-	FROM (project_task AS pt 
+	UNION
+    SELECT pd.project_task_id, pd.is_dependent_on_task_id, pd.link_type, pt.end_date, pt.start_date
+	FROM (project_task AS pt
 		RIGHT JOIN project_dependencies AS pd ON pd.is_dependent_on_task_id = pt.project_task_id);
 
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `group_join_request`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `group_join_request` (
   `group_id` int(11) NOT NULL default '0',
@@ -2210,18 +2210,18 @@
 		project_category.category_name,
 		project_status.status_name,
 		users.user_name,
-		users.realname 
-	FROM ((project_task 
-		LEFT JOIN project_category ON project_category.category_id = project_task.category_id) 
-		LEFT JOIN users ON users.user_id = project_task.created_by) 
+		users.realname
+	FROM ((project_task
+		LEFT JOIN project_category ON project_category.category_id = project_task.category_id)
+		LEFT JOIN users ON users.user_id = project_task.created_by)
 		LEFT JOIN project_status ON project_status.status_id = project_task.status_id;
 
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_type_monitor`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_type_monitor` (
   `group_artifact_id` int(11) NOT NULL default '0',
@@ -2230,9 +2230,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `plugin_cvstracker_data_artifact`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `plugin_cvstracker_data_artifact` (
   `id` int(11) NOT NULL auto_increment,
@@ -2245,9 +2245,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `plugin_cvstracker_data_master`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `plugin_cvstracker_data_master` (
   `id` int(11) NOT NULL auto_increment,
@@ -2264,19 +2264,19 @@
 -- --------------------------------------------------------
 
 CREATE OR REPLACE VIEW `nss_passwd` AS
-    SELECT users.unix_uid AS uid, users.unix_gid AS gid, users.user_name AS login, users.unix_pw AS passwd, users.realname AS gecos, users.shell, users.user_name AS homedir, users.status 
-	FROM users 
+    SELECT users.unix_uid AS uid, users.unix_gid AS gid, users.user_name AS login, users.unix_pw AS passwd, users.realname AS gecos, users.shell, users.user_name AS homedir, users.status
+	FROM users
 	WHERE users.unix_status = 'A';
 
 
 CREATE OR REPLACE VIEW `nss_shadow` AS
-    SELECT users.user_name AS login, users.unix_pw AS passwd, 'n' AS expired, 'n' AS pwchange 
-	FROM users 
+    SELECT users.user_name AS login, users.unix_pw AS passwd, 'n' AS expired, 'n' AS pwchange
+	FROM users
 	WHERE users.unix_status = 'A';
 
--- 
+--
 -- Table structure for table `nss_groups`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `nss_groups` (
   `user_id` int(11) default NULL,
@@ -2287,9 +2287,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `nss_usergroups`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `nss_usergroups` (
   `uid` int(11) default NULL,
@@ -2302,9 +2302,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `deleted_mailing_lists`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `deleted_mailing_lists` (
   `mailing_list_name` varchar(30) default NULL,
@@ -2314,9 +2314,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `deleted_groups`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `deleted_groups` (
   `unix_group_name` varchar(30) default NULL,
@@ -2326,9 +2326,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_query`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_query` (
   `artifact_query_id` varchar(10) NOT NULL default '',
@@ -2339,9 +2339,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `artifact_query_fields`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `artifact_query_fields` (
   `artifact_query_id` int(11) NOT NULL default '0',
@@ -2352,14 +2352,14 @@
 
 
 CREATE OR REPLACE VIEW `artifact_group_list_vw` AS
-    SELECT agl.group_artifact_id, agl.group_id, agl.name, agl.description, agl.is_public, agl.allow_anon, agl.email_all_updates, agl.email_address, agl.due_period, agl.submit_instructions, agl.browse_instructions, agl.datatype, agl.status_timeout, agl.custom_status_field, agl.custom_renderer, aca.count, aca.open_count 
-	FROM (artifact_group_list AS agl 
+    SELECT agl.group_artifact_id, agl.group_id, agl.name, agl.description, agl.is_public, agl.allow_anon, agl.email_all_updates, agl.email_address, agl.due_period, agl.submit_instructions, agl.browse_instructions, agl.datatype, agl.status_timeout, agl.custom_status_field, agl.custom_renderer, aca.count, aca.open_count
+	FROM (artifact_group_list AS agl
 		LEFT JOIN artifact_counts_agg AS aca USING (group_artifact_id));
 
 
 CREATE OR REPLACE VIEW `artifact_vw` AS
-    SELECT artifact.artifact_id, artifact.group_artifact_id, artifact.status_id, artifact.priority, artifact.submitted_by, artifact.assigned_to, artifact.open_date, artifact.close_date, artifact.summary, artifact.details, u.user_name AS assigned_unixname, u.realname AS assigned_realname, u.email AS assigned_email, u2.user_name AS submitted_unixname, u2.realname AS submitted_realname, u2.email AS submitted_email, artifact_status.status_name, artifact.last_modified_date 
-	FROM users u, users u2, artifact_status, artifact 
+    SELECT artifact.artifact_id, artifact.group_artifact_id, artifact.status_id, artifact.priority, artifact.submitted_by, artifact.assigned_to, artifact.open_date, artifact.close_date, artifact.summary, artifact.details, u.user_name AS assigned_unixname, u.realname AS assigned_realname, u.email AS assigned_email, u2.user_name AS submitted_unixname, u2.realname AS submitted_realname, u2.email AS submitted_email, artifact_status.status_name, artifact.last_modified_date
+	FROM users u, users u2, artifact_status, artifact
 	WHERE artifact.assigned_to = u.user_id AND artifact.submitted_by = u2.user_id AND artifact.status_id = artifact_status.id;
 
 CREATE OR REPLACE VIEW `docdata_vw` AS
@@ -2382,11 +2382,11 @@
 		d.filesize,
 		doc_states.name AS state_name,
 		doc_groups.groupname AS group_name,
-		sl.name AS language_name 
-	FROM ((((doc_data d 
-		NATURAL JOIN doc_states) 
-			NATURAL JOIN doc_groups) 
-				JOIN supported_languages sl ON sl.language_id = d.language_id) 
+		sl.name AS language_name
+	FROM ((((doc_data d
+		NATURAL JOIN doc_states)
+			NATURAL JOIN doc_groups)
+				JOIN supported_languages sl ON sl.language_id = d.language_id)
 					JOIN users ON users.user_id = d.created_by);
 
 
@@ -2607,9 +2607,9 @@
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table `forum_thread_seq`
--- 
+--
 
 CREATE TABLE IF NOT EXISTS `forum_thread_seq` (
   `value` int(11) NOT NULL default '1'
@@ -2634,10 +2634,10 @@
         LEAVE update_loop;
       END IF;
     END LOOP update_loop;
-    
+
     DEALLOCATE PREPARE select_stmt;
     DEALLOCATE PREPARE update_stmt;
-    
+
     SET result=@newvalue;
   END;
 //

Modified: trunk/src/db/gforge.sql
===================================================================
--- trunk/src/db/gforge.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/gforge.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1515,10 +1515,10 @@
 CREATE FUNCTION forumgrouplist_insert_agg() RETURNS "trigger"
     AS '
 BEGIN
-        INSERT INTO forum_agg_msg_count (group_forum_id,count) 
+        INSERT INTO forum_agg_msg_count (group_forum_id,count)
                 VALUES (NEW.group_forum_id,0);
         RETURN NEW;
-END;    
+END;
 '
     LANGUAGE plpgsql;
 
@@ -1527,10 +1527,10 @@
 CREATE FUNCTION artifactgrouplist_insert_agg() RETURNS "trigger"
     AS '
 BEGIN
-    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count) 
+    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count)
         VALUES (NEW.group_artifact_id,0,0);
         RETURN NEW;
-END;    
+END;
 '
     LANGUAGE plpgsql;
 
@@ -1550,13 +1550,13 @@
 		--
 		IF OLD.status_id=3 THEN
 			-- No need to decrement counters on old tracker
-		ELSE 
+		ELSE
 			IF OLD.status_id=2 THEN
-				UPDATE artifact_counts_agg SET count=count-1 
+				UPDATE artifact_counts_agg SET count=count-1
 					WHERE group_artifact_id=OLD.group_artifact_id;
-			ELSE 
+			ELSE
 				IF OLD.status_id=1 THEN
-					UPDATE artifact_counts_agg SET count=count-1,open_count=open_count-1 
+					UPDATE artifact_counts_agg SET count=count-1,open_count=open_count-1
 						WHERE group_artifact_id=OLD.group_artifact_id;
 				END IF;
 			END IF;
@@ -1566,57 +1566,57 @@
 			--DO NOTHING
 		ELSE
 			IF NEW.status_id=2 THEN
-					UPDATE artifact_counts_agg SET count=count+1 
+					UPDATE artifact_counts_agg SET count=count+1
 						WHERE group_artifact_id=NEW.group_artifact_id;
 			ELSE
 				IF NEW.status_id=1 THEN
-					UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1 
+					UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1
 						WHERE group_artifact_id=NEW.group_artifact_id;
 				END IF;
 			END IF;
 		END IF;
 	ELSE
 		--
-		-- just need to evaluate the status flag and 
+		-- just need to evaluate the status flag and
 		-- increment/decrement the counter as necessary
 		--
 		IF NEW.status_id <> OLD.status_id THEN
 			IF NEW.status_id = 1 THEN
 				IF OLD.status_id=2 THEN
-					UPDATE artifact_counts_agg SET open_count=open_count+1 
+					UPDATE artifact_counts_agg SET open_count=open_count+1
 						WHERE group_artifact_id=NEW.group_artifact_id;
-				ELSE 
+				ELSE
 					IF OLD.status_id=3 THEN
-						UPDATE artifact_counts_agg SET open_count=open_count+1, count=count+1 
+						UPDATE artifact_counts_agg SET open_count=open_count+1, count=count+1
 							WHERE group_artifact_id=NEW.group_artifact_id;
 					END IF;
 				END IF;
 			ELSE
 				IF NEW.status_id = 2 THEN
 					IF OLD.status_id=1 THEN
-						UPDATE artifact_counts_agg SET open_count=open_count-1 
+						UPDATE artifact_counts_agg SET open_count=open_count-1
 							WHERE group_artifact_id=NEW.group_artifact_id;
 					ELSE
 						IF OLD.status_id=3 THEN
-							UPDATE artifact_counts_agg SET count=count+1 
+							UPDATE artifact_counts_agg SET count=count+1
 								WHERE group_artifact_id=NEW.group_artifact_id;
 						END IF;
 					END IF;
-				ELSE 
+				ELSE
 					IF NEW.status_id = 3 THEN
 						IF OLD.status_id=2 THEN
-							UPDATE artifact_counts_agg SET count=count-1 
+							UPDATE artifact_counts_agg SET count=count-1
 								WHERE group_artifact_id=NEW.group_artifact_id;
 						ELSE
 							IF OLD.status_id=1 THEN
-								UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1 
+								UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1
 									WHERE group_artifact_id=NEW.group_artifact_id;
 							END IF;
 						END IF;
 					END IF;
 				END IF;
 			END IF;
-		END IF;	
+		END IF;
 	END IF;
 	RETURN NEW;
 END;
@@ -3627,19 +3627,19 @@
 
 
 COPY supported_languages (language_id, name, filename, classname, language_code) FROM stdin;
-1	English	English.class	English	en   
-2	Japanese	Japanese.class	Japanese	ja   
-4	Spanish	Spanish.class	Spanish	es   
-5	Thai	Thai.class	Thai	th   
-6	German	German.class	German	de   
-8	Italian	Italian.class	Italian	it   
-10	Swedish	Swedish.class	Swedish	sv   
-12	Dutch	Dutch.class	Dutch	nl   
-14	Catalan	Catalan.class	Catalan	ca   
-22	Korean	Korean.class	Korean	ko   
-20	Bulgarian	Bulgarian.class	Bulgarian	bg   
-17	Russian	Russian.class	Russian	ru   
-7	French	French.class	French	fr   
+1	English	English.class	English	en
+2	Japanese	Japanese.class	Japanese	ja
+4	Spanish	Spanish.class	Spanish	es
+5	Thai	Thai.class	Thai	th
+6	German	German.class	German	de
+8	Italian	Italian.class	Italian	it
+10	Swedish	Swedish.class	Swedish	sv
+12	Dutch	Dutch.class	Dutch	nl
+14	Catalan	Catalan.class	Catalan	ca
+22	Korean	Korean.class	Korean	ko
+20	Bulgarian	Bulgarian.class	Bulgarian	bg
+17	Russian	Russian.class	Russian	ru
+7	French	French.class	French	fr
 23	Smpl.Chinese	SimplifiedChinese.class	SimplifiedChinese	zh-cn
 11	Trad.Chinese	Chinese.class	Chinese	zh-tw
 16	Pt. Brazilian	PortugueseBrazilian.class	PortugueseBrazilian	pt-br
@@ -7588,9 +7588,9 @@
 	time_code int not null CONSTRAINT reptimetrk_timecode REFERENCES rep_time_category(time_code),
 	hours float not null
 );
---	CREATE UNIQUE INDEX reptimetrk_weekusrtskcde ON 
+--	CREATE UNIQUE INDEX reptimetrk_weekusrtskcde ON
 --		rep_time_tracking (week,user_id,project_task_id,time_code);
-CREATE INDEX reptimetracking_userdate ON 
+CREATE INDEX reptimetracking_userdate ON
 	rep_time_tracking (user_id,week);
 
 INSERT INTO rep_time_category VALUES ('1','Coding');
@@ -7702,11 +7702,11 @@
 	SELECT user_id,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
-	sum(forum) AS forum, 
-	sum(docs) AS docs, 
+	sum(forum) AS forum,
+	sum(docs) AS docs,
 	sum(cvs_commits) AS cvs_commits,
 	sum(tasks_opened) AS tasks_opened,
-	sum(tasks_closed) AS tasks_closed 
+	sum(tasks_closed) AS tasks_closed
 	FROM rep_user_act_monthly
 	GROUP BY user_id;
 
@@ -7773,7 +7773,7 @@
 	GROUP BY group_id;
 
 -- overall activity
-CREATE VIEW rep_site_act_daily_vw AS 
+CREATE VIEW rep_site_act_daily_vw AS
 	SELECT day,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
@@ -7786,7 +7786,7 @@
 	FROM rep_group_act_daily
 	GROUP BY day;
 
-CREATE VIEW rep_site_act_weekly_vw AS 
+CREATE VIEW rep_site_act_weekly_vw AS
 	SELECT week,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
@@ -7815,17 +7815,17 @@
 DROP VIEW "artifact_group_list_vw";
 
 ALTER TABLE "artifact_group_list" ADD COLUMN "browse_list" text;
-UPDATE "artifact_group_list" 
+UPDATE "artifact_group_list"
   SET browse_list='summary,open_date,assigned_to,submitted_by';
 ALTER TABLE "artifact_group_list" ALTER COLUMN browse_list SET NOT NULL;
 ALTER TABLE "artifact_group_list" ALTER COLUMN browse_list
   SET DEFAULT 'summary,open_date,assigned_to,submitted_by';
 
-CREATE VIEW "artifact_group_list_vw" AS 
+CREATE VIEW "artifact_group_list_vw" AS
   SELECT agl.group_artifact_id, agl.group_id, agl.name, agl.description,
     agl.is_public, agl.allow_anon, agl.email_all_updates, agl.email_address,
-    agl.due_period, agl.submit_instructions, agl.browse_instructions, 
-    agl.browse_list, agl.datatype, agl.status_timeout, agl.custom_status_field, 
+    agl.due_period, agl.submit_instructions, agl.browse_instructions,
+    agl.browse_list, agl.datatype, agl.status_timeout, agl.custom_status_field,
     agl.custom_renderer, aca.count, aca.open_count
   FROM artifact_group_list agl
   LEFT JOIN artifact_counts_agg aca USING (group_artifact_id);
@@ -7849,10 +7849,10 @@
   from_value_id integer NOT NULL,
   to_value_id integer NOT NULL,
   CONSTRAINT artifact_workflow_event_pkey PRIMARY KEY (event_id),
-  CONSTRAINT artifact_workflow_event_group_artifact_id_fkey FOREIGN KEY (group_artifact_id, field_id) 
+  CONSTRAINT artifact_workflow_event_group_artifact_id_fkey FOREIGN KEY (group_artifact_id, field_id)
 	REFERENCES artifact_extra_field_list (group_artifact_id, extra_field_id) MATCH SIMPLE
 	ON UPDATE NO ACTION ON DELETE CASCADE
-) 
+)
 WITH OIDS;
 -- ALTER TABLE artifact_workflow_event OWNER TO gforge;
 
@@ -7890,7 +7890,7 @@
   CONSTRAINT artifact_workflow_notify_event_id_fkey FOREIGN KEY (event_id)
       REFERENCES artifact_workflow_event (event_id) MATCH SIMPLE
       ON UPDATE NO ACTION ON DELETE CASCADE
-) 
+)
 WITH OIDS;
 -- ALTER TABLE artifact_workflow_notify OWNER TO gforge;
 

Modified: trunk/src/db/gforge2.6.sql
===================================================================
--- trunk/src/db/gforge2.6.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/gforge2.6.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -2169,7 +2169,7 @@
 --
 -- TOC Entry ID 470 (OID 23326)
 --
--- Name: plpgsql Type: PROCEDURAL LANGUAGE Owner: 
+-- Name: plpgsql Type: PROCEDURAL LANGUAGE Owner:
 --
 
 CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER "plpgsql_call_handler" LANCOMPILER 'PL/pgSQL';
@@ -2182,10 +2182,10 @@
 
 CREATE FUNCTION "forumgrouplist_insert_agg" () RETURNS opaque AS '
 BEGIN
-        INSERT INTO forum_agg_msg_count (group_forum_id,count) 
+        INSERT INTO forum_agg_msg_count (group_forum_id,count)
                 VALUES (NEW.group_forum_id,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 --
@@ -2196,10 +2196,10 @@
 
 CREATE FUNCTION "artifactgrouplist_insert_agg" () RETURNS opaque AS '
 BEGIN
-    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count) 
+    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count)
         VALUES (NEW.group_artifact_id,0,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 --
@@ -2219,14 +2219,14 @@
         -- transferred artifacts always have a status of 1
         -- so we will increment the new artifacttypes sums
         --
-        UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1 
+        UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1
             WHERE group_artifact_id=NEW.group_artifact_id;
         --
         --  now see how to increment/decrement the old types sums
         --
-        IF NEW.status_id <> OLD.status_id THEN 
+        IF NEW.status_id <> OLD.status_id THEN
             IF OLD.status_id = 2 THEN
-                UPDATE artifact_counts_agg SET count=count-1 
+                UPDATE artifact_counts_agg SET count=count-1
                     WHERE group_artifact_id=OLD.group_artifact_id;
             --
             --  no need to do anything if it was in deleted status
@@ -2236,30 +2236,30 @@
             --
             --  Was already in open status before
             --
-            UPDATE artifact_counts_agg SET count=count-1, open_count=open_count-1 
+            UPDATE artifact_counts_agg SET count=count-1, open_count=open_count-1
                 WHERE group_artifact_id=OLD.group_artifact_id;
         END IF;
     ELSE
         --
-        -- just need to evaluate the status flag and 
+        -- just need to evaluate the status flag and
         -- increment/decrement the counter as necessary
         --
         IF NEW.status_id <> OLD.status_id THEN
             IF new.status_id = 1 THEN
-                UPDATE artifact_counts_agg SET open_count=open_count+1 
+                UPDATE artifact_counts_agg SET open_count=open_count+1
                     WHERE group_artifact_id=new.group_artifact_id;
-            ELSE 
+            ELSE
                 IF new.status_id = 2 THEN
-                    UPDATE artifact_counts_agg SET open_count=open_count-1 
+                    UPDATE artifact_counts_agg SET open_count=open_count-1
                         WHERE group_artifact_id=new.group_artifact_id;
-                ELSE 
+                ELSE
                     IF new.status_id = 3 THEN
-                        UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1 
+                        UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1
                             WHERE group_artifact_id=new.group_artifact_id;
                     END IF;
                 END IF;
             END IF;
-        END IF; 
+        END IF;
     END IF;
     RETURN NEW;
 END;
@@ -6687,7 +6687,7 @@
 --
 -- TOC Entry ID 3 (OID 18724)
 --
--- Name: canned_responses_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: canned_responses_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"canned_responses_pk_seq"', 1, 'f');
@@ -6695,7 +6695,7 @@
 --
 -- TOC Entry ID 5 (OID 18774)
 --
--- Name: db_images_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: db_images_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"db_images_pk_seq"', 1, 'f');
@@ -6703,7 +6703,7 @@
 --
 -- TOC Entry ID 7 (OID 18840)
 --
--- Name: doc_data_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_data_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_data_pk_seq"', 1, 'f');
@@ -6711,7 +6711,7 @@
 --
 -- TOC Entry ID 9 (OID 18905)
 --
--- Name: doc_groups_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_groups_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_groups_pk_seq"', 1, 'f');
@@ -6719,7 +6719,7 @@
 --
 -- TOC Entry ID 11 (OID 18942)
 --
--- Name: doc_states_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_states_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_states_pk_seq"', 1, 'f');
@@ -6727,7 +6727,7 @@
 --
 -- TOC Entry ID 13 (OID 18977)
 --
--- Name: filemodule_monitor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: filemodule_monitor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"filemodule_monitor_pk_seq"', 1, 'f');
@@ -6735,7 +6735,7 @@
 --
 -- TOC Entry ID 15 (OID 19014)
 --
--- Name: forum_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_pk_seq"', 1, 'f');
@@ -6743,7 +6743,7 @@
 --
 -- TOC Entry ID 17 (OID 19096)
 --
--- Name: forum_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_group_list_pk_seq"', 1, 'f');
@@ -6751,7 +6751,7 @@
 --
 -- TOC Entry ID 19 (OID 19154)
 --
--- Name: forum_monitored_forums_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_monitored_forums_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_monitored_forums_pk_seq"', 1, 'f');
@@ -6759,7 +6759,7 @@
 --
 -- TOC Entry ID 21 (OID 19191)
 --
--- Name: forum_saved_place_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_saved_place_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_saved_place_pk_seq"', 1, 'f');
@@ -6767,7 +6767,7 @@
 --
 -- TOC Entry ID 23 (OID 19268)
 --
--- Name: foundry_news_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_news_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_news_pk_seq"', 1, 'f');
@@ -6775,7 +6775,7 @@
 --
 -- TOC Entry ID 25 (OID 19309)
 --
--- Name: foundry_preferred_projec_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_preferred_projec_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_preferred_projec_pk_seq"', 1, 'f');
@@ -6783,7 +6783,7 @@
 --
 -- TOC Entry ID 27 (OID 19348)
 --
--- Name: foundry_projects_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_projects_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_projects_pk_seq"', 1, 'f');
@@ -6791,7 +6791,7 @@
 --
 -- TOC Entry ID 29 (OID 19385)
 --
--- Name: frs_file_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_file_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_file_pk_seq"', 1, 'f');
@@ -6799,7 +6799,7 @@
 --
 -- TOC Entry ID 31 (OID 19446)
 --
--- Name: frs_filetype_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_filetype_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_filetype_pk_seq"', 9999, 't');
@@ -6807,7 +6807,7 @@
 --
 -- TOC Entry ID 33 (OID 19495)
 --
--- Name: frs_package_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_package_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_package_pk_seq"', 1, 'f');
@@ -6815,7 +6815,7 @@
 --
 -- TOC Entry ID 35 (OID 19548)
 --
--- Name: frs_processor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_processor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_processor_pk_seq"', 9999, 't');
@@ -6823,7 +6823,7 @@
 --
 -- TOC Entry ID 37 (OID 19597)
 --
--- Name: frs_release_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_release_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_release_pk_seq"', 1, 'f');
@@ -6831,7 +6831,7 @@
 --
 -- TOC Entry ID 39 (OID 19658)
 --
--- Name: frs_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_status_pk_seq"', 3, 't');
@@ -6839,7 +6839,7 @@
 --
 -- TOC Entry ID 41 (OID 19707)
 --
--- Name: group_cvs_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_cvs_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_cvs_history_pk_seq"', 1, 'f');
@@ -6847,7 +6847,7 @@
 --
 -- TOC Entry ID 43 (OID 19726)
 --
--- Name: group_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_history_pk_seq"', 1, 'f');
@@ -6855,7 +6855,7 @@
 --
 -- TOC Entry ID 45 (OID 19783)
 --
--- Name: group_type_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_type_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_type_pk_seq"', 1, 'f');
@@ -6863,7 +6863,7 @@
 --
 -- TOC Entry ID 47 (OID 19832)
 --
--- Name: groups_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: groups_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"groups_pk_seq"', 4, 't');
@@ -6871,7 +6871,7 @@
 --
 -- TOC Entry ID 49 (OID 19977)
 --
--- Name: mail_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: mail_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"mail_group_list_pk_seq"', 1, 'f');
@@ -6879,7 +6879,7 @@
 --
 -- TOC Entry ID 51 (OID 20036)
 --
--- Name: news_bytes_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: news_bytes_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"news_bytes_pk_seq"', 1, 'f');
@@ -6887,7 +6887,7 @@
 --
 -- TOC Entry ID 53 (OID 20096)
 --
--- Name: people_job_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_pk_seq"', 1, 'f');
@@ -6895,7 +6895,7 @@
 --
 -- TOC Entry ID 55 (OID 20156)
 --
--- Name: people_job_category_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_category_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_category_pk_seq"', 7, 't');
@@ -6903,7 +6903,7 @@
 --
 -- TOC Entry ID 57 (OID 20207)
 --
--- Name: people_job_inventory_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_inventory_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_inventory_pk_seq"', 1, 'f');
@@ -6911,7 +6911,7 @@
 --
 -- TOC Entry ID 59 (OID 20248)
 --
--- Name: people_job_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_status_pk_seq"', 1, 'f');
@@ -6919,7 +6919,7 @@
 --
 -- TOC Entry ID 61 (OID 20297)
 --
--- Name: people_skill_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_pk_seq"', 1, 'f');
@@ -6927,7 +6927,7 @@
 --
 -- TOC Entry ID 63 (OID 20346)
 --
--- Name: people_skill_inventory_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_inventory_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_inventory_pk_seq"', 1, 'f');
@@ -6935,7 +6935,7 @@
 --
 -- TOC Entry ID 65 (OID 20387)
 --
--- Name: people_skill_level_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_level_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_level_pk_seq"', 5, 't');
@@ -6943,7 +6943,7 @@
 --
 -- TOC Entry ID 67 (OID 20436)
 --
--- Name: people_skill_year_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_year_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_year_pk_seq"', 5, 't');
@@ -6951,7 +6951,7 @@
 --
 -- TOC Entry ID 69 (OID 20485)
 --
--- Name: project_assigned_to_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_assigned_to_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_assigned_to_pk_seq"', 1, 'f');
@@ -6959,7 +6959,7 @@
 --
 -- TOC Entry ID 71 (OID 20522)
 --
--- Name: project_dependencies_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_dependencies_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_dependencies_pk_seq"', 1, 'f');
@@ -6967,7 +6967,7 @@
 --
 -- TOC Entry ID 73 (OID 20559)
 --
--- Name: project_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_group_list_pk_seq"', 1, 't');
@@ -6975,7 +6975,7 @@
 --
 -- TOC Entry ID 75 (OID 20614)
 --
--- Name: project_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_history_pk_seq"', 1, 'f');
@@ -6983,7 +6983,7 @@
 --
 -- TOC Entry ID 77 (OID 20672)
 --
--- Name: project_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_pk_seq"', 1, 'f');
@@ -6991,7 +6991,7 @@
 --
 -- TOC Entry ID 79 (OID 20708)
 --
--- Name: project_metric_tmp1_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_tmp1_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_tmp1_pk_seq"', 1, 'f');
@@ -6999,7 +6999,7 @@
 --
 -- TOC Entry ID 81 (OID 20744)
 --
--- Name: project_metric_weekly_tm_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_weekly_tm_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_weekly_tm_pk_seq"', 1, 'f');
@@ -7007,7 +7007,7 @@
 --
 -- TOC Entry ID 83 (OID 20763)
 --
--- Name: project_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_status_pk_seq"', 1, 'f');
@@ -7015,7 +7015,7 @@
 --
 -- TOC Entry ID 85 (OID 20813)
 --
--- Name: project_task_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_task_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_task_pk_seq"', 1, 't');
@@ -7023,7 +7023,7 @@
 --
 -- TOC Entry ID 87 (OID 20881)
 --
--- Name: project_weekly_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_weekly_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_weekly_metric_pk_seq"', 1, 'f');
@@ -7031,7 +7031,7 @@
 --
 -- TOC Entry ID 89 (OID 20934)
 --
--- Name: snippet_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_pk_seq"', 1, 'f');
@@ -7039,7 +7039,7 @@
 --
 -- TOC Entry ID 91 (OID 20994)
 --
--- Name: snippet_package_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_pk_seq"', 1, 'f');
@@ -7047,7 +7047,7 @@
 --
 -- TOC Entry ID 93 (OID 21050)
 --
--- Name: snippet_package_item_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_item_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_item_pk_seq"', 1, 'f');
@@ -7055,7 +7055,7 @@
 --
 -- TOC Entry ID 95 (OID 21087)
 --
--- Name: snippet_package_version_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_version_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_version_pk_seq"', 1, 'f');
@@ -7063,7 +7063,7 @@
 --
 -- TOC Entry ID 97 (OID 21143)
 --
--- Name: snippet_version_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_version_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_version_pk_seq"', 1, 'f');
@@ -7071,7 +7071,7 @@
 --
 -- TOC Entry ID 99 (OID 21258)
 --
--- Name: supported_languages_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: supported_languages_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"supported_languages_pk_seq"', 23, 't');
@@ -7079,7 +7079,7 @@
 --
 -- TOC Entry ID 101 (OID 21310)
 --
--- Name: survey_question_types_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: survey_question_types_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"survey_question_types_pk_seq"', 1, 'f');
@@ -7087,7 +7087,7 @@
 --
 -- TOC Entry ID 103 (OID 21360)
 --
--- Name: survey_questions_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: survey_questions_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"survey_questions_pk_seq"', 1, 'f');
@@ -7095,7 +7095,7 @@
 --
 -- TOC Entry ID 105 (OID 21486)
 --
--- Name: surveys_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: surveys_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"surveys_pk_seq"', 1, 'f');
@@ -7103,7 +7103,7 @@
 --
 -- TOC Entry ID 107 (OID 21542)
 --
--- Name: system_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_history_pk_seq"', 1, 'f');
@@ -7111,7 +7111,7 @@
 --
 -- TOC Entry ID 109 (OID 21561)
 --
--- Name: system_machines_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_machines_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_machines_pk_seq"', 1, 'f');
@@ -7119,7 +7119,7 @@
 --
 -- TOC Entry ID 111 (OID 21580)
 --
--- Name: system_news_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_news_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_news_pk_seq"', 1, 'f');
@@ -7127,7 +7127,7 @@
 --
 -- TOC Entry ID 113 (OID 21599)
 --
--- Name: system_services_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_services_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_services_pk_seq"', 1, 'f');
@@ -7135,7 +7135,7 @@
 --
 -- TOC Entry ID 115 (OID 21618)
 --
--- Name: system_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_status_pk_seq"', 1, 'f');
@@ -7143,7 +7143,7 @@
 --
 -- TOC Entry ID 117 (OID 21665)
 --
--- Name: themes_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: themes_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"themes_pk_seq"', 1, 't');
@@ -7151,7 +7151,7 @@
 --
 -- TOC Entry ID 119 (OID 21742)
 --
--- Name: trove_cat_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_cat_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_cat_pk_seq"', 305, 't');
@@ -7159,7 +7159,7 @@
 --
 -- TOC Entry ID 121 (OID 21806)
 --
--- Name: trove_group_link_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_group_link_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_group_link_pk_seq"', 1, 'f');
@@ -7167,7 +7167,7 @@
 --
 -- TOC Entry ID 123 (OID 21847)
 --
--- Name: trove_treesums_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_treesums_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_treesums_pk_seq"', 1, 'f');
@@ -7175,7 +7175,7 @@
 --
 -- TOC Entry ID 125 (OID 21866)
 --
--- Name: user_bookmarks_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_bookmarks_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_bookmarks_pk_seq"', 1, 'f');
@@ -7183,7 +7183,7 @@
 --
 -- TOC Entry ID 127 (OID 21918)
 --
--- Name: user_diary_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_diary_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_diary_pk_seq"', 1, 'f');
@@ -7191,7 +7191,7 @@
 --
 -- TOC Entry ID 129 (OID 21974)
 --
--- Name: user_diary_monitor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_diary_monitor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_diary_monitor_pk_seq"', 1, 'f');
@@ -7199,7 +7199,7 @@
 --
 -- TOC Entry ID 131 (OID 22011)
 --
--- Name: user_group_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_group_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_group_pk_seq"', 1, 'f');
@@ -7207,7 +7207,7 @@
 --
 -- TOC Entry ID 133 (OID 22069)
 --
--- Name: user_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_metric_pk_seq"', 1, 'f');
@@ -7215,7 +7215,7 @@
 --
 -- TOC Entry ID 135 (OID 22116)
 --
--- Name: user_metric0_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_metric0_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_metric0_pk_seq"', 1, 'f');
@@ -7223,7 +7223,7 @@
 --
 -- TOC Entry ID 137 (OID 22211)
 --
--- Name: users_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: users_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"users_pk_seq"', 1, 'f');
@@ -7231,7 +7231,7 @@
 --
 -- TOC Entry ID 139 (OID 22298)
 --
--- Name: unix_uid_seq Type: SEQUENCE SET Owner: 
+-- Name: unix_uid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"unix_uid_seq"', 1, 'f');
@@ -7239,7 +7239,7 @@
 --
 -- TOC Entry ID 141 (OID 22317)
 --
--- Name: forum_thread_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_thread_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_thread_seq"', 1, 'f');
@@ -7247,7 +7247,7 @@
 --
 -- TOC Entry ID 143 (OID 22350)
 --
--- Name: project_metric_wee_ranking1_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_wee_ranking1_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_wee_ranking1_seq"', 1, 'f');
@@ -7255,7 +7255,7 @@
 --
 -- TOC Entry ID 145 (OID 22369)
 --
--- Name: prdb_dbs_dbid_seq Type: SEQUENCE SET Owner: 
+-- Name: prdb_dbs_dbid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"prdb_dbs_dbid_seq"', 1, 'f');
@@ -7263,7 +7263,7 @@
 --
 -- TOC Entry ID 147 (OID 22481)
 --
--- Name: prweb_vhost_vhostid_seq Type: SEQUENCE SET Owner: 
+-- Name: prweb_vhost_vhostid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"prweb_vhost_vhostid_seq"', 1, 'f');
@@ -7271,7 +7271,7 @@
 --
 -- TOC Entry ID 149 (OID 22533)
 --
--- Name: artifact_grou_group_artifac_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_grou_group_artifac_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_grou_group_artifac_seq"', 100, 't');
@@ -7279,7 +7279,7 @@
 --
 -- TOC Entry ID 151 (OID 22600)
 --
--- Name: artifact_resolution_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_resolution_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_resolution_id_seq"', 1, 'f');
@@ -7287,7 +7287,7 @@
 --
 -- TOC Entry ID 153 (OID 22649)
 --
--- Name: artifact_perm_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_perm_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_perm_id_seq"', 1, 'f');
@@ -7295,7 +7295,7 @@
 --
 -- TOC Entry ID 155 (OID 22718)
 --
--- Name: artifact_category_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_category_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_category_id_seq"', 100, 't');
@@ -7303,7 +7303,7 @@
 --
 -- TOC Entry ID 157 (OID 22770)
 --
--- Name: artifact_group_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_group_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_group_id_seq"', 1, 'f');
@@ -7311,7 +7311,7 @@
 --
 -- TOC Entry ID 159 (OID 22820)
 --
--- Name: artifact_status_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_status_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_status_id_seq"', 3, 't');
@@ -7319,7 +7319,7 @@
 --
 -- TOC Entry ID 161 (OID 22869)
 --
--- Name: artifact_artifact_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_artifact_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_artifact_id_seq"', 1, 'f');
@@ -7327,7 +7327,7 @@
 --
 -- TOC Entry ID 163 (OID 22974)
 --
--- Name: artifact_history_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_history_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_history_id_seq"', 1, 'f');
@@ -7335,7 +7335,7 @@
 --
 -- TOC Entry ID 165 (OID 23048)
 --
--- Name: artifact_file_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_file_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_file_id_seq"', 1, 'f');
@@ -7343,7 +7343,7 @@
 --
 -- TOC Entry ID 167 (OID 23126)
 --
--- Name: artifact_message_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_message_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_message_id_seq"', 1, 'f');
@@ -7351,7 +7351,7 @@
 --
 -- TOC Entry ID 169 (OID 23199)
 --
--- Name: artifact_monitor_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_monitor_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_monitor_id_seq"', 1, 'f');
@@ -7359,7 +7359,7 @@
 --
 -- TOC Entry ID 171 (OID 23250)
 --
--- Name: artifact_canned_response_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_canned_response_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_canned_response_id_seq"', 1, 'f');
@@ -7367,7 +7367,7 @@
 --
 -- TOC Entry ID 173 (OID 23330)
 --
--- Name: massmail_queue_id_seq Type: SEQUENCE SET Owner: 
+-- Name: massmail_queue_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"massmail_queue_id_seq"', 1, 'f');
@@ -7375,7 +7375,7 @@
 --
 -- TOC Entry ID 175 (OID 26050)
 --
--- Name: trove_treesum_trove_treesum_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_treesum_trove_treesum_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_treesum_trove_treesum_seq"', 1, 'f');

Modified: trunk/src/db/nss-pgsql.sql
===================================================================
--- trunk/src/db/nss-pgsql.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/nss-pgsql.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,7 +5,7 @@
 CREATE SEQUENCE group_unix_id_seq START 50000;
 UPDATE users SET unix_uid=0,unix_gid=0,shell='/bin/cvssh.pl';
 ALTER TABLE users ALTER COLUMN shell SET default '/bin/cvssh.pl';
-UPDATE users SET unix_uid=nextval('user_unix_id_seq'),unix_gid=currval('user_unix_id_seq') 
+UPDATE users SET unix_uid=nextval('user_unix_id_seq'),unix_gid=currval('user_unix_id_seq')
 	WHERE user_id IN (SELECT user_id FROM user_group);
 ALTER TABLE groups ADD COLUMN unix_gid int;
 ALTER TABLE groups SET DEFAULT nextval('group_unix_id_seq');
@@ -15,7 +15,7 @@
 CREATE OR REPLACE FUNCTION userunixid_func() RETURNS TRIGGER AS '
 DECLARE
 	newuser RECORD;
-BEGIN 
+BEGIN
 	FOR newuser IN SELECT unix_uid FROM users WHERE user_id=NEW.user_id LOOP
 		IF newuser.unix_uid=0 THEN
 			UPDATE users SET unix_uid=nextval(''user_unix_id_seq''),
@@ -45,7 +45,7 @@
 		user_name AS homedir,
 		status
 	FROM users
-	WHERE STATUS='A' AND EXISTS (SELECT user_id 
+	WHERE STATUS='A' AND EXISTS (SELECT user_id
 		FROM user_group WHERE user_id=users.user_id AND cvs_flags IN (0,1));
 
 --
@@ -59,7 +59,7 @@
 		CHAR(1) 'n' AS expired,
 		CHAR(1) 'n' AS pwchange
 	FROM users
-	WHERE STATUS='A' AND EXISTS (SELECT user_id 
+	WHERE STATUS='A' AND EXISTS (SELECT user_id
 		FROM user_group WHERE user_id=users.user_id AND cvs_flags IN (0,1));
 --
 -- Group Table
@@ -72,7 +72,7 @@
 --	FROM users
 --	WHERE status = 'A' AND EXISTS (SELECT user_id
 --		FROM user_group WHERE user_id=users.user_id AND cvs_flags IN (0,1));
---	UNION 
+--	UNION
 	SELECT 0 AS user_id, group_id,unix_group_name AS name, unix_gid AS gid
 	FROM groups;
 --
@@ -80,7 +80,7 @@
 --
 DROP TABLE nss_usergroups ;
 DROP VIEW nss_usergroups;
-CREATE VIEW nss_usergroups AS 
+CREATE VIEW nss_usergroups AS
 	SELECT
 		users.unix_uid AS uid,
 		groups.unix_gid AS gid,
@@ -89,7 +89,7 @@
 		users.user_name AS user_name,
 		groups.unix_group_name AS unix_group_name
 	FROM users,groups,user_group
-	WHERE 
+	WHERE
 		users.user_id=user_group.user_id
 	AND
 		groups.group_id=user_group.group_id

Modified: trunk/src/db/timetracking-init.sql
===================================================================
--- trunk/src/db/timetracking-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/db/timetracking-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -11,9 +11,9 @@
 	time_code int not null CONSTRAINT reptimetrk_timecode REFERENCES rep_time_category(time_code),
 	hours float not null
 );
---	CREATE UNIQUE INDEX reptimetrk_weekusrtskcde ON 
+--	CREATE UNIQUE INDEX reptimetrk_weekusrtskcde ON
 --		rep_time_tracking (week,user_id,project_task_id,time_code);
-CREATE INDEX reptimetracking_userdate ON 
+CREATE INDEX reptimetracking_userdate ON
 	rep_time_tracking (user_id,week);
 
 INSERT INTO rep_time_category VALUES ('1','Coding');
@@ -125,11 +125,11 @@
 	SELECT user_id,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
-	sum(forum) AS forum, 
-	sum(docs) AS docs, 
+	sum(forum) AS forum,
+	sum(docs) AS docs,
 	sum(cvs_commits) AS cvs_commits,
 	sum(tasks_opened) AS tasks_opened,
-	sum(tasks_closed) AS tasks_closed 
+	sum(tasks_closed) AS tasks_closed
 	FROM rep_user_act_monthly
 	GROUP BY user_id;
 
@@ -196,7 +196,7 @@
 	GROUP BY group_id;
 
 -- overall activity
-CREATE VIEW rep_site_act_daily_vw AS 
+CREATE VIEW rep_site_act_daily_vw AS
 	SELECT day,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
@@ -209,7 +209,7 @@
 	FROM rep_group_act_daily
 	GROUP BY day;
 
-CREATE VIEW rep_site_act_weekly_vw AS 
+CREATE VIEW rep_site_act_weekly_vw AS
 	SELECT week,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,

Modified: trunk/src/deb-specific/sf-2.6-complete.sql
===================================================================
--- trunk/src/deb-specific/sf-2.6-complete.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/deb-specific/sf-2.6-complete.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -2169,7 +2169,7 @@
 --
 -- TOC Entry ID 470 (OID 23326)
 --
--- Name: plpgsql Type: PROCEDURAL LANGUAGE Owner: 
+-- Name: plpgsql Type: PROCEDURAL LANGUAGE Owner:
 --
 
 -- CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER "plpgsql_call_handler" LANCOMPILER 'PL/pgSQL';
@@ -2182,10 +2182,10 @@
 
 CREATE FUNCTION "forumgrouplist_insert_agg" () RETURNS opaque AS '
 BEGIN
-        INSERT INTO forum_agg_msg_count (group_forum_id,count) 
+        INSERT INTO forum_agg_msg_count (group_forum_id,count)
                 VALUES (NEW.group_forum_id,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 --
@@ -2196,10 +2196,10 @@
 
 CREATE FUNCTION "artifactgrouplist_insert_agg" () RETURNS opaque AS '
 BEGIN
-    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count) 
+    INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count)
         VALUES (NEW.group_artifact_id,0,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 --
@@ -2219,14 +2219,14 @@
         -- transferred artifacts always have a status of 1
         -- so we will increment the new artifacttypes sums
         --
-        UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1 
+        UPDATE artifact_counts_agg SET count=count+1, open_count=open_count+1
             WHERE group_artifact_id=NEW.group_artifact_id;
         --
         --  now see how to increment/decrement the old types sums
         --
-        IF NEW.status_id <> OLD.status_id THEN 
+        IF NEW.status_id <> OLD.status_id THEN
             IF OLD.status_id = 2 THEN
-                UPDATE artifact_counts_agg SET count=count-1 
+                UPDATE artifact_counts_agg SET count=count-1
                     WHERE group_artifact_id=OLD.group_artifact_id;
             --
             --  no need to do anything if it was in deleted status
@@ -2236,30 +2236,30 @@
             --
             --  Was already in open status before
             --
-            UPDATE artifact_counts_agg SET count=count-1, open_count=open_count-1 
+            UPDATE artifact_counts_agg SET count=count-1, open_count=open_count-1
                 WHERE group_artifact_id=OLD.group_artifact_id;
         END IF;
     ELSE
         --
-        -- just need to evaluate the status flag and 
+        -- just need to evaluate the status flag and
         -- increment/decrement the counter as necessary
         --
         IF NEW.status_id <> OLD.status_id THEN
             IF new.status_id = 1 THEN
-                UPDATE artifact_counts_agg SET open_count=open_count+1 
+                UPDATE artifact_counts_agg SET open_count=open_count+1
                     WHERE group_artifact_id=new.group_artifact_id;
-            ELSE 
+            ELSE
                 IF new.status_id = 2 THEN
-                    UPDATE artifact_counts_agg SET open_count=open_count-1 
+                    UPDATE artifact_counts_agg SET open_count=open_count-1
                         WHERE group_artifact_id=new.group_artifact_id;
-                ELSE 
+                ELSE
                     IF new.status_id = 3 THEN
-                        UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1 
+                        UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1
                             WHERE group_artifact_id=new.group_artifact_id;
                     END IF;
                 END IF;
             END IF;
-        END IF; 
+        END IF;
     END IF;
     RETURN NEW;
 END;
@@ -5774,9 +5774,9 @@
 
 ALTER TABLE artifact_group_list ADD CONSTRAINT artifactgroup_groupid_fk FOREIGN KEY (group_id) REFERENCES groups(group_id) MATCH FULL ;
 
-ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_userid_fk 
+ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_userid_fk
         FOREIGN KEY (user_id) REFERENCES users(user_id) MATCH FULL;
-ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_groupartifactid_fk 
+ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_groupartifactid_fk
         FOREIGN KEY (group_artifact_id) REFERENCES artifact_group_list(group_artifact_id) MATCH FULL;
 
 ALTER TABLE artifact_category ADD CONSTRAINT artifactcategory_autoassignto_fk
@@ -5887,7 +5887,7 @@
 --
 -- TOC Entry ID 3 (OID 18724)
 --
--- Name: canned_responses_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: canned_responses_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"canned_responses_pk_seq"', 1, 'f');
@@ -5895,7 +5895,7 @@
 --
 -- TOC Entry ID 5 (OID 18774)
 --
--- Name: db_images_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: db_images_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"db_images_pk_seq"', 1, 'f');
@@ -5903,7 +5903,7 @@
 --
 -- TOC Entry ID 7 (OID 18840)
 --
--- Name: doc_data_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_data_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_data_pk_seq"', 1, 'f');
@@ -5911,7 +5911,7 @@
 --
 -- TOC Entry ID 9 (OID 18905)
 --
--- Name: doc_groups_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_groups_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_groups_pk_seq"', 1, 'f');
@@ -5919,7 +5919,7 @@
 --
 -- TOC Entry ID 11 (OID 18942)
 --
--- Name: doc_states_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_states_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_states_pk_seq"', 1, 'f');
@@ -5927,7 +5927,7 @@
 --
 -- TOC Entry ID 13 (OID 18977)
 --
--- Name: filemodule_monitor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: filemodule_monitor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"filemodule_monitor_pk_seq"', 1, 'f');
@@ -5935,7 +5935,7 @@
 --
 -- TOC Entry ID 15 (OID 19014)
 --
--- Name: forum_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_pk_seq"', 1, 'f');
@@ -5943,7 +5943,7 @@
 --
 -- TOC Entry ID 17 (OID 19096)
 --
--- Name: forum_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_group_list_pk_seq"', 1, 'f');
@@ -5951,7 +5951,7 @@
 --
 -- TOC Entry ID 19 (OID 19154)
 --
--- Name: forum_monitored_forums_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_monitored_forums_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_monitored_forums_pk_seq"', 1, 'f');
@@ -5959,7 +5959,7 @@
 --
 -- TOC Entry ID 21 (OID 19191)
 --
--- Name: forum_saved_place_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_saved_place_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_saved_place_pk_seq"', 1, 'f');
@@ -5967,7 +5967,7 @@
 --
 -- TOC Entry ID 23 (OID 19268)
 --
--- Name: foundry_news_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_news_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_news_pk_seq"', 1, 'f');
@@ -5975,7 +5975,7 @@
 --
 -- TOC Entry ID 25 (OID 19309)
 --
--- Name: foundry_preferred_projec_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_preferred_projec_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_preferred_projec_pk_seq"', 1, 'f');
@@ -5983,7 +5983,7 @@
 --
 -- TOC Entry ID 27 (OID 19348)
 --
--- Name: foundry_projects_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_projects_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_projects_pk_seq"', 1, 'f');
@@ -5991,7 +5991,7 @@
 --
 -- TOC Entry ID 29 (OID 19385)
 --
--- Name: frs_file_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_file_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_file_pk_seq"', 1, 'f');
@@ -5999,7 +5999,7 @@
 --
 -- TOC Entry ID 31 (OID 19446)
 --
--- Name: frs_filetype_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_filetype_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_filetype_pk_seq"', 9999, 't');
@@ -6007,7 +6007,7 @@
 --
 -- TOC Entry ID 33 (OID 19495)
 --
--- Name: frs_package_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_package_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_package_pk_seq"', 1, 'f');
@@ -6015,7 +6015,7 @@
 --
 -- TOC Entry ID 35 (OID 19548)
 --
--- Name: frs_processor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_processor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_processor_pk_seq"', 9999, 't');
@@ -6023,7 +6023,7 @@
 --
 -- TOC Entry ID 37 (OID 19597)
 --
--- Name: frs_release_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_release_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_release_pk_seq"', 1, 'f');
@@ -6031,7 +6031,7 @@
 --
 -- TOC Entry ID 39 (OID 19658)
 --
--- Name: frs_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_status_pk_seq"', 3, 't');
@@ -6039,7 +6039,7 @@
 --
 -- TOC Entry ID 41 (OID 19707)
 --
--- Name: group_cvs_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_cvs_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_cvs_history_pk_seq"', 1, 'f');
@@ -6047,7 +6047,7 @@
 --
 -- TOC Entry ID 43 (OID 19726)
 --
--- Name: group_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_history_pk_seq"', 1, 'f');
@@ -6055,7 +6055,7 @@
 --
 -- TOC Entry ID 45 (OID 19783)
 --
--- Name: group_type_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_type_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_type_pk_seq"', 1, 'f');
@@ -6063,7 +6063,7 @@
 --
 -- TOC Entry ID 47 (OID 19832)
 --
--- Name: groups_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: groups_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"groups_pk_seq"', 4, 't');
@@ -6071,7 +6071,7 @@
 --
 -- TOC Entry ID 49 (OID 19977)
 --
--- Name: mail_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: mail_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"mail_group_list_pk_seq"', 1, 'f');
@@ -6079,7 +6079,7 @@
 --
 -- TOC Entry ID 51 (OID 20036)
 --
--- Name: news_bytes_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: news_bytes_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"news_bytes_pk_seq"', 1, 'f');
@@ -6087,7 +6087,7 @@
 --
 -- TOC Entry ID 53 (OID 20096)
 --
--- Name: people_job_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_pk_seq"', 1, 'f');
@@ -6095,7 +6095,7 @@
 --
 -- TOC Entry ID 55 (OID 20156)
 --
--- Name: people_job_category_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_category_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_category_pk_seq"', 7, 't');
@@ -6103,7 +6103,7 @@
 --
 -- TOC Entry ID 57 (OID 20207)
 --
--- Name: people_job_inventory_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_inventory_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_inventory_pk_seq"', 1, 'f');
@@ -6111,7 +6111,7 @@
 --
 -- TOC Entry ID 59 (OID 20248)
 --
--- Name: people_job_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_status_pk_seq"', 1, 'f');
@@ -6119,7 +6119,7 @@
 --
 -- TOC Entry ID 61 (OID 20297)
 --
--- Name: people_skill_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_pk_seq"', 1, 'f');
@@ -6127,7 +6127,7 @@
 --
 -- TOC Entry ID 63 (OID 20346)
 --
--- Name: people_skill_inventory_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_inventory_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_inventory_pk_seq"', 1, 'f');
@@ -6135,7 +6135,7 @@
 --
 -- TOC Entry ID 65 (OID 20387)
 --
--- Name: people_skill_level_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_level_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_level_pk_seq"', 5, 't');
@@ -6143,7 +6143,7 @@
 --
 -- TOC Entry ID 67 (OID 20436)
 --
--- Name: people_skill_year_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_year_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_year_pk_seq"', 5, 't');
@@ -6151,7 +6151,7 @@
 --
 -- TOC Entry ID 69 (OID 20485)
 --
--- Name: project_assigned_to_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_assigned_to_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_assigned_to_pk_seq"', 1, 'f');
@@ -6159,7 +6159,7 @@
 --
 -- TOC Entry ID 71 (OID 20522)
 --
--- Name: project_dependencies_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_dependencies_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_dependencies_pk_seq"', 1, 'f');
@@ -6167,7 +6167,7 @@
 --
 -- TOC Entry ID 73 (OID 20559)
 --
--- Name: project_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_group_list_pk_seq"', 1, 't');
@@ -6175,7 +6175,7 @@
 --
 -- TOC Entry ID 75 (OID 20614)
 --
--- Name: project_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_history_pk_seq"', 1, 'f');
@@ -6183,7 +6183,7 @@
 --
 -- TOC Entry ID 77 (OID 20672)
 --
--- Name: project_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_pk_seq"', 1, 'f');
@@ -6191,7 +6191,7 @@
 --
 -- TOC Entry ID 79 (OID 20708)
 --
--- Name: project_metric_tmp1_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_tmp1_pk_seq Type: SEQUENCE SET Owner:
 --
 
 -- SELECT setval ('"project_metric_tmp1_pk_seq"', 1, 'f');
@@ -6199,7 +6199,7 @@
 --
 -- TOC Entry ID 81 (OID 20744)
 --
--- Name: project_metric_weekly_tm_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_weekly_tm_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_weekly_tm_pk_seq"', 1, 'f');
@@ -6207,7 +6207,7 @@
 --
 -- TOC Entry ID 83 (OID 20763)
 --
--- Name: project_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_status_pk_seq"', 1, 'f');
@@ -6215,7 +6215,7 @@
 --
 -- TOC Entry ID 85 (OID 20813)
 --
--- Name: project_task_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_task_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_task_pk_seq"', 100, 't');
@@ -6223,7 +6223,7 @@
 --
 -- TOC Entry ID 87 (OID 20881)
 --
--- Name: project_weekly_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_weekly_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_weekly_metric_pk_seq"', 1, 'f');
@@ -6231,7 +6231,7 @@
 --
 -- TOC Entry ID 89 (OID 20934)
 --
--- Name: snippet_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_pk_seq"', 1, 'f');
@@ -6239,7 +6239,7 @@
 --
 -- TOC Entry ID 91 (OID 20994)
 --
--- Name: snippet_package_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_pk_seq"', 1, 'f');
@@ -6247,7 +6247,7 @@
 --
 -- TOC Entry ID 93 (OID 21050)
 --
--- Name: snippet_package_item_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_item_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_item_pk_seq"', 1, 'f');
@@ -6255,7 +6255,7 @@
 --
 -- TOC Entry ID 95 (OID 21087)
 --
--- Name: snippet_package_version_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_version_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_version_pk_seq"', 1, 'f');
@@ -6263,7 +6263,7 @@
 --
 -- TOC Entry ID 97 (OID 21143)
 --
--- Name: snippet_version_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_version_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_version_pk_seq"', 1, 'f');
@@ -6271,7 +6271,7 @@
 --
 -- TOC Entry ID 99 (OID 21258)
 --
--- Name: supported_languages_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: supported_languages_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"supported_languages_pk_seq"', 23, 't');
@@ -6279,7 +6279,7 @@
 --
 -- TOC Entry ID 101 (OID 21310)
 --
--- Name: survey_question_types_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: survey_question_types_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"survey_question_types_pk_seq"', 1, 'f');
@@ -6287,7 +6287,7 @@
 --
 -- TOC Entry ID 103 (OID 21360)
 --
--- Name: survey_questions_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: survey_questions_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"survey_questions_pk_seq"', 1, 'f');
@@ -6295,7 +6295,7 @@
 --
 -- TOC Entry ID 105 (OID 21486)
 --
--- Name: surveys_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: surveys_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"surveys_pk_seq"', 1, 'f');
@@ -6303,7 +6303,7 @@
 --
 -- TOC Entry ID 107 (OID 21542)
 --
--- Name: system_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_history_pk_seq"', 1, 'f');
@@ -6311,7 +6311,7 @@
 --
 -- TOC Entry ID 109 (OID 21561)
 --
--- Name: system_machines_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_machines_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_machines_pk_seq"', 1, 'f');
@@ -6319,7 +6319,7 @@
 --
 -- TOC Entry ID 111 (OID 21580)
 --
--- Name: system_news_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_news_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_news_pk_seq"', 1, 'f');
@@ -6327,7 +6327,7 @@
 --
 -- TOC Entry ID 113 (OID 21599)
 --
--- Name: system_services_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_services_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_services_pk_seq"', 1, 'f');
@@ -6335,7 +6335,7 @@
 --
 -- TOC Entry ID 115 (OID 21618)
 --
--- Name: system_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_status_pk_seq"', 1, 'f');
@@ -6343,7 +6343,7 @@
 --
 -- TOC Entry ID 117 (OID 21665)
 --
--- Name: themes_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: themes_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"themes_pk_seq"', 1, 't');
@@ -6351,7 +6351,7 @@
 --
 -- TOC Entry ID 119 (OID 21742)
 --
--- Name: trove_cat_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_cat_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_cat_pk_seq"', 305, 't');
@@ -6359,7 +6359,7 @@
 --
 -- TOC Entry ID 121 (OID 21806)
 --
--- Name: trove_group_link_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_group_link_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_group_link_pk_seq"', 1, 'f');
@@ -6367,7 +6367,7 @@
 --
 -- TOC Entry ID 123 (OID 21847)
 --
--- Name: trove_treesums_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_treesums_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_treesums_pk_seq"', 1, 'f');
@@ -6375,7 +6375,7 @@
 --
 -- TOC Entry ID 125 (OID 21866)
 --
--- Name: user_bookmarks_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_bookmarks_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_bookmarks_pk_seq"', 1, 'f');
@@ -6383,7 +6383,7 @@
 --
 -- TOC Entry ID 127 (OID 21918)
 --
--- Name: user_diary_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_diary_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_diary_pk_seq"', 1, 'f');
@@ -6391,7 +6391,7 @@
 --
 -- TOC Entry ID 129 (OID 21974)
 --
--- Name: user_diary_monitor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_diary_monitor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_diary_monitor_pk_seq"', 1, 'f');
@@ -6399,7 +6399,7 @@
 --
 -- TOC Entry ID 131 (OID 22011)
 --
--- Name: user_group_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_group_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_group_pk_seq"', 1, 'f');
@@ -6407,7 +6407,7 @@
 --
 -- TOC Entry ID 133 (OID 22069)
 --
--- Name: user_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_metric_pk_seq"', 1, 'f');
@@ -6415,7 +6415,7 @@
 --
 -- TOC Entry ID 135 (OID 22116)
 --
--- Name: user_metric0_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_metric0_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_metric0_pk_seq"', 1, 'f');
@@ -6423,7 +6423,7 @@
 --
 -- TOC Entry ID 137 (OID 22211)
 --
--- Name: users_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: users_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"users_pk_seq"', 1, 'f');
@@ -6431,7 +6431,7 @@
 --
 -- TOC Entry ID 139 (OID 22298)
 --
--- Name: unix_uid_seq Type: SEQUENCE SET Owner: 
+-- Name: unix_uid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"unix_uid_seq"', 1, 'f');
@@ -6439,7 +6439,7 @@
 --
 -- TOC Entry ID 141 (OID 22317)
 --
--- Name: forum_thread_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_thread_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_thread_seq"', 1, 'f');
@@ -6447,7 +6447,7 @@
 --
 -- TOC Entry ID 143 (OID 22350)
 --
--- Name: project_metric_wee_ranking1_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_wee_ranking1_seq Type: SEQUENCE SET Owner:
 --
 
 -- SELECT setval ('"project_metric_wee_ranking1_seq"', 1, 'f');
@@ -6455,7 +6455,7 @@
 --
 -- TOC Entry ID 145 (OID 22369)
 --
--- Name: prdb_dbs_dbid_seq Type: SEQUENCE SET Owner: 
+-- Name: prdb_dbs_dbid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"prdb_dbs_dbid_seq"', 1, 'f');
@@ -6463,7 +6463,7 @@
 --
 -- TOC Entry ID 147 (OID 22481)
 --
--- Name: prweb_vhost_vhostid_seq Type: SEQUENCE SET Owner: 
+-- Name: prweb_vhost_vhostid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"prweb_vhost_vhostid_seq"', 1, 'f');
@@ -6471,7 +6471,7 @@
 --
 -- TOC Entry ID 149 (OID 22533)
 --
--- Name: artifact_grou_group_artifac_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_grou_group_artifac_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_grou_group_artifac_seq"', 100, 't');
@@ -6479,7 +6479,7 @@
 --
 -- TOC Entry ID 151 (OID 22600)
 --
--- Name: artifact_resolution_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_resolution_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_resolution_id_seq"', 1, 'f');
@@ -6487,7 +6487,7 @@
 --
 -- TOC Entry ID 153 (OID 22649)
 --
--- Name: artifact_perm_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_perm_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_perm_id_seq"', 1, 'f');
@@ -6495,7 +6495,7 @@
 --
 -- TOC Entry ID 155 (OID 22718)
 --
--- Name: artifact_category_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_category_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_category_id_seq"', 100, 't');
@@ -6503,7 +6503,7 @@
 --
 -- TOC Entry ID 157 (OID 22770)
 --
--- Name: artifact_group_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_group_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_group_id_seq"', 1, 'f');
@@ -6511,7 +6511,7 @@
 --
 -- TOC Entry ID 159 (OID 22820)
 --
--- Name: artifact_status_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_status_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_status_id_seq"', 3, 't');
@@ -6519,7 +6519,7 @@
 --
 -- TOC Entry ID 161 (OID 22869)
 --
--- Name: artifact_artifact_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_artifact_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_artifact_id_seq"', 1, 'f');
@@ -6527,7 +6527,7 @@
 --
 -- TOC Entry ID 163 (OID 22974)
 --
--- Name: artifact_history_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_history_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_history_id_seq"', 1, 'f');
@@ -6535,7 +6535,7 @@
 --
 -- TOC Entry ID 165 (OID 23048)
 --
--- Name: artifact_file_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_file_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_file_id_seq"', 1, 'f');
@@ -6543,7 +6543,7 @@
 --
 -- TOC Entry ID 167 (OID 23126)
 --
--- Name: artifact_message_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_message_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_message_id_seq"', 1, 'f');
@@ -6551,7 +6551,7 @@
 --
 -- TOC Entry ID 169 (OID 23199)
 --
--- Name: artifact_monitor_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_monitor_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_monitor_id_seq"', 1, 'f');
@@ -6559,7 +6559,7 @@
 --
 -- TOC Entry ID 171 (OID 23250)
 --
--- Name: artifact_canned_response_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_canned_response_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_canned_response_id_seq"', 1, 'f');
@@ -6567,7 +6567,7 @@
 --
 -- TOC Entry ID 173 (OID 23330)
 --
--- Name: massmail_queue_id_seq Type: SEQUENCE SET Owner: 
+-- Name: massmail_queue_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"massmail_queue_id_seq"', 1, 'f');
@@ -6575,7 +6575,7 @@
 --
 -- TOC Entry ID 175 (OID 26050)
 --
--- Name: trove_treesum_trove_treesum_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_treesum_trove_treesum_seq Type: SEQUENCE SET Owner:
 --
 
 -- SELECT setval ('"trove_treesum_trove_treesum_seq"', 1, 'f');

Modified: trunk/src/deb-specific/sf2.5-to-sf2.6-extra.sql
===================================================================
--- trunk/src/deb-specific/sf2.5-to-sf2.6-extra.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/deb-specific/sf2.5-to-sf2.6-extra.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -562,7 +562,7 @@
 --
 -- TOC Entry ID 3 (OID 468604)
 --
--- Name: artifact_artifact_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_artifact_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_artifact_id_seq"', 1, 'f');
@@ -582,7 +582,7 @@
 --
 -- TOC Entry ID 3 (OID 468985)
 --
--- Name: artifact_canned_response_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_canned_response_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_canned_response_id_seq"', 1, 'f');
@@ -602,7 +602,7 @@
 --
 -- TOC Entry ID 3 (OID 468453)
 --
--- Name: artifact_category_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_category_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_category_id_seq"', 100, 't');
@@ -622,7 +622,7 @@
 --
 -- TOC Entry ID 3 (OID 468783)
 --
--- Name: artifact_file_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_file_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_file_id_seq"', 1, 'f');
@@ -642,7 +642,7 @@
 --
 -- TOC Entry ID 3 (OID 468268)
 --
--- Name: artifact_grou_group_artifac_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_grou_group_artifac_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_grou_group_artifac_seq"', 100, 't');
@@ -662,7 +662,7 @@
 --
 -- TOC Entry ID 3 (OID 468505)
 --
--- Name: artifact_group_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_group_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_group_id_seq"', 1, 'f');
@@ -682,7 +682,7 @@
 --
 -- TOC Entry ID 3 (OID 468709)
 --
--- Name: artifact_history_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_history_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_history_id_seq"', 1, 'f');
@@ -702,7 +702,7 @@
 --
 -- TOC Entry ID 3 (OID 468861)
 --
--- Name: artifact_message_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_message_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_message_id_seq"', 1, 'f');
@@ -722,7 +722,7 @@
 --
 -- TOC Entry ID 3 (OID 468934)
 --
--- Name: artifact_monitor_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_monitor_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_monitor_id_seq"', 1, 'f');
@@ -742,7 +742,7 @@
 --
 -- TOC Entry ID 3 (OID 468384)
 --
--- Name: artifact_perm_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_perm_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_perm_id_seq"', 1, 'f');
@@ -762,7 +762,7 @@
 --
 -- TOC Entry ID 3 (OID 468335)
 --
--- Name: artifact_resolution_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_resolution_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_resolution_id_seq"', 1, 'f');
@@ -782,7 +782,7 @@
 --
 -- TOC Entry ID 3 (OID 468555)
 --
--- Name: artifact_status_id_seq Type: SEQUENCE SET Owner: 
+-- Name: artifact_status_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"artifact_status_id_seq"', 3, 't');
@@ -802,7 +802,7 @@
 --
 -- TOC Entry ID 3 (OID 464514)
 --
--- Name: canned_responses_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: canned_responses_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"canned_responses_pk_seq"', 1, 'f');
@@ -822,7 +822,7 @@
 --
 -- TOC Entry ID 3 (OID 464564)
 --
--- Name: db_images_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: db_images_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"db_images_pk_seq"', 1, 'f');
@@ -842,7 +842,7 @@
 --
 -- TOC Entry ID 3 (OID 464630)
 --
--- Name: doc_data_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_data_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_data_pk_seq"', 1, 'f');
@@ -862,7 +862,7 @@
 --
 -- TOC Entry ID 3 (OID 464695)
 --
--- Name: doc_groups_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_groups_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_groups_pk_seq"', 1, 'f');
@@ -882,7 +882,7 @@
 --
 -- TOC Entry ID 3 (OID 464732)
 --
--- Name: doc_states_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: doc_states_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"doc_states_pk_seq"', 1, 'f');
@@ -902,7 +902,7 @@
 --
 -- TOC Entry ID 3 (OID 464767)
 --
--- Name: filemodule_monitor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: filemodule_monitor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"filemodule_monitor_pk_seq"', 1, 'f');
@@ -922,7 +922,7 @@
 --
 -- TOC Entry ID 3 (OID 464886)
 --
--- Name: forum_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_group_list_pk_seq"', 1, 'f');
@@ -942,7 +942,7 @@
 --
 -- TOC Entry ID 3 (OID 464944)
 --
--- Name: forum_monitored_forums_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_monitored_forums_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_monitored_forums_pk_seq"', 1, 'f');
@@ -962,7 +962,7 @@
 --
 -- TOC Entry ID 3 (OID 464804)
 --
--- Name: forum_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_pk_seq"', 1, 'f');
@@ -982,7 +982,7 @@
 --
 -- TOC Entry ID 3 (OID 464981)
 --
--- Name: forum_saved_place_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_saved_place_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_saved_place_pk_seq"', 1, 'f');
@@ -1002,7 +1002,7 @@
 --
 -- TOC Entry ID 3 (OID 468052)
 --
--- Name: forum_thread_seq Type: SEQUENCE SET Owner: 
+-- Name: forum_thread_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"forum_thread_seq"', 1, 'f');
@@ -1022,7 +1022,7 @@
 --
 -- TOC Entry ID 3 (OID 465058)
 --
--- Name: foundry_news_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_news_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_news_pk_seq"', 1, 'f');
@@ -1042,7 +1042,7 @@
 --
 -- TOC Entry ID 3 (OID 465099)
 --
--- Name: foundry_preferred_projec_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_preferred_projec_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_preferred_projec_pk_seq"', 1, 'f');
@@ -1062,7 +1062,7 @@
 --
 -- TOC Entry ID 3 (OID 465138)
 --
--- Name: foundry_projects_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: foundry_projects_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"foundry_projects_pk_seq"', 1, 'f');
@@ -1082,7 +1082,7 @@
 --
 -- TOC Entry ID 3 (OID 465175)
 --
--- Name: frs_file_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_file_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_file_pk_seq"', 1, 'f');
@@ -1102,7 +1102,7 @@
 --
 -- TOC Entry ID 3 (OID 465236)
 --
--- Name: frs_filetype_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_filetype_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_filetype_pk_seq"', 9999, 't');
@@ -1122,7 +1122,7 @@
 --
 -- TOC Entry ID 3 (OID 465285)
 --
--- Name: frs_package_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_package_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_package_pk_seq"', 1, 'f');
@@ -1142,7 +1142,7 @@
 --
 -- TOC Entry ID 3 (OID 465338)
 --
--- Name: frs_processor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_processor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_processor_pk_seq"', 9999, 't');
@@ -1162,7 +1162,7 @@
 --
 -- TOC Entry ID 3 (OID 465387)
 --
--- Name: frs_release_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_release_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_release_pk_seq"', 1, 'f');
@@ -1182,7 +1182,7 @@
 --
 -- TOC Entry ID 3 (OID 465448)
 --
--- Name: frs_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: frs_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"frs_status_pk_seq"', 3, 't');
@@ -1202,7 +1202,7 @@
 --
 -- TOC Entry ID 3 (OID 465497)
 --
--- Name: group_cvs_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_cvs_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_cvs_history_pk_seq"', 1, 'f');
@@ -1222,7 +1222,7 @@
 --
 -- TOC Entry ID 3 (OID 465516)
 --
--- Name: group_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_history_pk_seq"', 1, 'f');
@@ -1242,7 +1242,7 @@
 --
 -- TOC Entry ID 3 (OID 465622)
 --
--- Name: groups_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: groups_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"groups_pk_seq"', 4, 't');
@@ -1262,7 +1262,7 @@
 --
 -- TOC Entry ID 3 (OID 465573)
 --
--- Name: group_type_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: group_type_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"group_type_pk_seq"', 1, 'f');
@@ -1282,7 +1282,7 @@
 --
 -- TOC Entry ID 3 (OID 465712)
 --
--- Name: mail_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: mail_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"mail_group_list_pk_seq"', 1, 'f');
@@ -1302,7 +1302,7 @@
 --
 -- TOC Entry ID 3 (OID 469063)
 --
--- Name: massmail_queue_id_seq Type: SEQUENCE SET Owner: 
+-- Name: massmail_queue_id_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"massmail_queue_id_seq"', 1, 'f');
@@ -1322,7 +1322,7 @@
 --
 -- TOC Entry ID 3 (OID 465771)
 --
--- Name: news_bytes_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: news_bytes_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"news_bytes_pk_seq"', 1, 'f');
@@ -1342,7 +1342,7 @@
 --
 -- TOC Entry ID 3 (OID 465891)
 --
--- Name: people_job_category_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_category_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_category_pk_seq"', 7, 't');
@@ -1362,7 +1362,7 @@
 --
 -- TOC Entry ID 3 (OID 465942)
 --
--- Name: people_job_inventory_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_inventory_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_inventory_pk_seq"', 1, 'f');
@@ -1382,7 +1382,7 @@
 --
 -- TOC Entry ID 3 (OID 465831)
 --
--- Name: people_job_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_pk_seq"', 1, 'f');
@@ -1402,7 +1402,7 @@
 --
 -- TOC Entry ID 3 (OID 465983)
 --
--- Name: people_job_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_job_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_job_status_pk_seq"', 1, 'f');
@@ -1422,7 +1422,7 @@
 --
 -- TOC Entry ID 3 (OID 466081)
 --
--- Name: people_skill_inventory_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_inventory_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_inventory_pk_seq"', 1, 'f');
@@ -1442,7 +1442,7 @@
 --
 -- TOC Entry ID 3 (OID 466122)
 --
--- Name: people_skill_level_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_level_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_level_pk_seq"', 5, 't');
@@ -1462,7 +1462,7 @@
 --
 -- TOC Entry ID 3 (OID 466032)
 --
--- Name: people_skill_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_pk_seq"', 9, 't');
@@ -1482,7 +1482,7 @@
 --
 -- TOC Entry ID 3 (OID 466171)
 --
--- Name: people_skill_year_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: people_skill_year_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"people_skill_year_pk_seq"', 5, 't');
@@ -1502,7 +1502,7 @@
 --
 -- TOC Entry ID 3 (OID 468104)
 --
--- Name: prdb_dbs_dbid_seq Type: SEQUENCE SET Owner: 
+-- Name: prdb_dbs_dbid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"prdb_dbs_dbid_seq"', 1, 'f');
@@ -1522,7 +1522,7 @@
 --
 -- TOC Entry ID 3 (OID 466220)
 --
--- Name: project_assigned_to_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_assigned_to_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_assigned_to_pk_seq"', 1, 'f');
@@ -1542,7 +1542,7 @@
 --
 -- TOC Entry ID 3 (OID 466257)
 --
--- Name: project_dependencies_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_dependencies_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_dependencies_pk_seq"', 1, 'f');
@@ -1562,7 +1562,7 @@
 --
 -- TOC Entry ID 3 (OID 466294)
 --
--- Name: project_group_list_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_group_list_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_group_list_pk_seq"', 1, 't');
@@ -1582,7 +1582,7 @@
 --
 -- TOC Entry ID 3 (OID 466349)
 --
--- Name: project_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_history_pk_seq"', 1, 'f');
@@ -1602,7 +1602,7 @@
 --
 -- TOC Entry ID 3 (OID 466407)
 --
--- Name: project_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_pk_seq"', 1, 'f');
@@ -1622,7 +1622,7 @@
 --
 -- TOC Entry ID 3 (OID 466443)
 --
--- Name: project_metric_tmp1_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_tmp1_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_tmp1_pk_seq"', 1, 'f');
@@ -1642,7 +1642,7 @@
 --
 -- TOC Entry ID 3 (OID 466479)
 --
--- Name: project_metric_weekly_tm_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_weekly_tm_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_weekly_tm_pk_seq"', 1, 'f');
@@ -1662,7 +1662,7 @@
 --
 -- TOC Entry ID 3 (OID 468085)
 --
--- Name: project_metric_wee_ranking1_seq Type: SEQUENCE SET Owner: 
+-- Name: project_metric_wee_ranking1_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_metric_wee_ranking1_seq"', 1, 'f');
@@ -1682,7 +1682,7 @@
 --
 -- TOC Entry ID 3 (OID 466498)
 --
--- Name: project_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_status_pk_seq"', 1, 'f');
@@ -1702,7 +1702,7 @@
 --
 -- TOC Entry ID 3 (OID 466548)
 --
--- Name: project_task_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_task_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_task_pk_seq"', 1, 't');
@@ -1722,7 +1722,7 @@
 --
 -- TOC Entry ID 3 (OID 466616)
 --
--- Name: project_weekly_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: project_weekly_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"project_weekly_metric_pk_seq"', 1, 'f');
@@ -1742,7 +1742,7 @@
 --
 -- TOC Entry ID 3 (OID 468216)
 --
--- Name: prweb_vhost_vhostid_seq Type: SEQUENCE SET Owner: 
+-- Name: prweb_vhost_vhostid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"prweb_vhost_vhostid_seq"', 1, 'f');
@@ -1762,7 +1762,7 @@
 --
 -- TOC Entry ID 3 (OID 466785)
 --
--- Name: snippet_package_item_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_item_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_item_pk_seq"', 1, 'f');
@@ -1782,7 +1782,7 @@
 --
 -- TOC Entry ID 3 (OID 466729)
 --
--- Name: snippet_package_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_pk_seq"', 1, 'f');
@@ -1802,7 +1802,7 @@
 --
 -- TOC Entry ID 3 (OID 466822)
 --
--- Name: snippet_package_version_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_package_version_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_package_version_pk_seq"', 1, 'f');
@@ -1822,7 +1822,7 @@
 --
 -- TOC Entry ID 3 (OID 466669)
 --
--- Name: snippet_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_pk_seq"', 1, 'f');
@@ -1842,7 +1842,7 @@
 --
 -- TOC Entry ID 3 (OID 466878)
 --
--- Name: snippet_version_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: snippet_version_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"snippet_version_pk_seq"', 1, 'f');
@@ -1862,7 +1862,7 @@
 --
 -- TOC Entry ID 3 (OID 466993)
 --
--- Name: supported_languages_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: supported_languages_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"supported_languages_pk_seq"', 23, 't');
@@ -1882,7 +1882,7 @@
 --
 -- TOC Entry ID 3 (OID 467095)
 --
--- Name: survey_questions_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: survey_questions_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"survey_questions_pk_seq"', 1, 'f');
@@ -1902,7 +1902,7 @@
 --
 -- TOC Entry ID 3 (OID 467045)
 --
--- Name: survey_question_types_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: survey_question_types_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"survey_question_types_pk_seq"', 1, 'f');
@@ -1922,7 +1922,7 @@
 --
 -- TOC Entry ID 3 (OID 467221)
 --
--- Name: surveys_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: surveys_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"surveys_pk_seq"', 1, 'f');
@@ -1942,7 +1942,7 @@
 --
 -- TOC Entry ID 3 (OID 467277)
 --
--- Name: system_history_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_history_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_history_pk_seq"', 1, 'f');
@@ -1962,7 +1962,7 @@
 --
 -- TOC Entry ID 3 (OID 467296)
 --
--- Name: system_machines_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_machines_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_machines_pk_seq"', 1, 'f');
@@ -1982,7 +1982,7 @@
 --
 -- TOC Entry ID 3 (OID 467315)
 --
--- Name: system_news_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_news_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_news_pk_seq"', 1, 'f');
@@ -2002,7 +2002,7 @@
 --
 -- TOC Entry ID 3 (OID 467334)
 --
--- Name: system_services_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_services_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_services_pk_seq"', 1, 'f');
@@ -2022,7 +2022,7 @@
 --
 -- TOC Entry ID 3 (OID 467353)
 --
--- Name: system_status_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: system_status_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"system_status_pk_seq"', 1, 'f');
@@ -2042,7 +2042,7 @@
 --
 -- TOC Entry ID 3 (OID 467400)
 --
--- Name: themes_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: themes_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"themes_pk_seq"', 1, 't');
@@ -2062,7 +2062,7 @@
 --
 -- TOC Entry ID 3 (OID 467477)
 --
--- Name: trove_cat_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_cat_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_cat_pk_seq"', 305, 't');
@@ -2082,7 +2082,7 @@
 --
 -- TOC Entry ID 3 (OID 467541)
 --
--- Name: trove_group_link_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_group_link_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_group_link_pk_seq"', 1, 'f');
@@ -2102,7 +2102,7 @@
 --
 -- TOC Entry ID 3 (OID 467582)
 --
--- Name: trove_treesums_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_treesums_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_treesums_pk_seq"', 1, 'f');
@@ -2122,7 +2122,7 @@
 --
 -- TOC Entry ID 3 (OID 469781)
 --
--- Name: trove_treesum_trove_treesum_seq Type: SEQUENCE SET Owner: 
+-- Name: trove_treesum_trove_treesum_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"trove_treesum_trove_treesum_seq"', 1, 'f');
@@ -2142,7 +2142,7 @@
 --
 -- TOC Entry ID 3 (OID 468033)
 --
--- Name: unix_uid_seq Type: SEQUENCE SET Owner: 
+-- Name: unix_uid_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"unix_uid_seq"', 1, 'f');
@@ -2162,7 +2162,7 @@
 --
 -- TOC Entry ID 3 (OID 467601)
 --
--- Name: user_bookmarks_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_bookmarks_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_bookmarks_pk_seq"', 1, 'f');
@@ -2182,7 +2182,7 @@
 --
 -- TOC Entry ID 3 (OID 467709)
 --
--- Name: user_diary_monitor_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_diary_monitor_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_diary_monitor_pk_seq"', 1, 'f');
@@ -2202,7 +2202,7 @@
 --
 -- TOC Entry ID 3 (OID 467653)
 --
--- Name: user_diary_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_diary_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_diary_pk_seq"', 1, 'f');
@@ -2222,7 +2222,7 @@
 --
 -- TOC Entry ID 3 (OID 467746)
 --
--- Name: user_group_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_group_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_group_pk_seq"', 4, 't');
@@ -2242,7 +2242,7 @@
 --
 -- TOC Entry ID 3 (OID 467851)
 --
--- Name: user_metric0_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_metric0_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_metric0_pk_seq"', 1, 'f');
@@ -2262,7 +2262,7 @@
 --
 -- TOC Entry ID 3 (OID 467804)
 --
--- Name: user_metric_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: user_metric_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"user_metric_pk_seq"', 1, 'f');
@@ -2282,7 +2282,7 @@
 --
 -- TOC Entry ID 3 (OID 467946)
 --
--- Name: users_pk_seq Type: SEQUENCE SET Owner: 
+-- Name: users_pk_seq Type: SEQUENCE SET Owner:
 --
 
 SELECT setval ('"users_pk_seq"', 102, 'f');

Modified: trunk/src/deb-specific/sf2.5-to-sf2.6.sql
===================================================================
--- trunk/src/deb-specific/sf2.5-to-sf2.6.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/deb-specific/sf2.5-to-sf2.6.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -72,13 +72,13 @@
 CREATE TABLE prdb_states (
   stateid INT NOT NULL,
   statename TEXT
-);                
+);
 CREATE UNIQUE INDEX idx_prdb_dbname ON prdb_dbs (dbname);
 INSERT INTO prdb_states VALUES ('1', 'Active');
 INSERT INTO prdb_states VALUES ('2', 'Pending Create');
 INSERT INTO prdb_states VALUES ('3', 'Pending Delete');
 INSERT INTO prdb_states VALUES ('4', 'Pending Update');
-INSERT INTO prdb_states VALUES ('5', 'Failed Create'); 
+INSERT INTO prdb_states VALUES ('5', 'Failed Create');
 INSERT INTO prdb_states VALUES ('6', 'Failed Delete');
 INSERT INTO prdb_states VALUES ('7', 'Failed Update');
 CREATE TABLE prdb_types (
@@ -293,24 +293,24 @@
 ----- TODO
 -- Re-enable this when the "stats" account exists
 -----
--- GRANT SELECT ON 
+-- GRANT SELECT ON
 -- artifact,
 -- artifact_group_list
 -- TO stats;
 
 -- artifact-conversion
 UPDATE groups SET bug_due_period='2592000' WHERE bug_due_period is null;
-INSERT INTO artifact_group_list 
+INSERT INTO artifact_group_list
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+100000,group_id,'Bugs','Bug Tracking System',use_bugs,
-1,send_all_bugs,new_bug_address,bug_due_period,1,1 
-FROM groups 
+1,send_all_bugs,new_bug_address,bug_due_period,1,1
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 INSERT INTO artifact_perm
 (group_artifact_id,user_id,perm_level)
-SELECT group_id+100000,user_id,bug_flags 
+SELECT group_id+100000,user_id,bug_flags
 FROM user_group;
 INSERT INTO artifact_group (id,group_artifact_id,group_name)
 SELECT bug_group_id+100000,group_id+100000,group_name FROM bug_group;
@@ -321,12 +321,12 @@
 UPDATE bug SET status_id=2 WHERE status_id=3;
 DELETE FROM bug_status WHERE status_id=3;
 UPDATE bug SET close_date=0 WHERE close_date is NULL;
-INSERT INTO artifact 
+INSERT INTO artifact
 (artifact_id,group_artifact_id,status_id,category_id,artifact_group_id,priority,
 submitted_by,assigned_to,open_date,close_date,summary,details,resolution_id)
-SELECT 
+SELECT
 bug_id+100000,group_id+100000,status_id,category_id+100000,bug_group_id+100000,priority,
-submitted_by,assigned_to,date,close_date,summary,details,resolution_id 
+submitted_by,assigned_to,date,close_date,summary,details,resolution_id
 FROM bug WHERE summary is not null
 ORDER BY group_id ASC;
 -- UPDATE bug_history SET old_value=1 WHERE old_value='100' AND field_name='status_id';
@@ -364,12 +364,12 @@
 FROM bug_canned_responses
 WHERE group_id > 0;
 UPDATE groups SET support_due_period='2592000' WHERE support_due_period is null;
-INSERT INTO artifact_group_list 
+INSERT INTO artifact_group_list
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+200000,group_id,'Support Requests','Tech Support Tracking System',use_support,
-1,send_all_support,new_support_address,support_due_period,0,2 
-FROM groups  
+1,send_all_support,new_support_address,support_due_period,0,2
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 INSERT INTO artifact_perm
@@ -378,12 +378,12 @@
 FROM user_group;
 INSERT INTO artifact_category (id,group_artifact_id,category_name,auto_assign_to)
 SELECT support_category_id+200000,group_id+200000,category_name,100 FROM support_category;
-DELETE FROM support WHERE NOT EXISTS 
+DELETE FROM support WHERE NOT EXISTS
 (SELECT group_id FROM groups WHERE support.group_id=groups.group_id);
 INSERT INTO artifact
 (artifact_id,group_artifact_id,status_id,category_id,artifact_group_id,priority,
 submitted_by,assigned_to,open_date,close_date,summary,details,resolution_id)
-SELECT 
+SELECT
 support_id+200000,group_id+200000,support_status_id,support_category_id+200000,100,priority,
 submitted_by,assigned_to,open_date,close_date,summary,'',100
 FROM support
@@ -421,15 +421,15 @@
 (group_artifact_id,title,body)
 SELECT
 group_id+200000,title,body
-FROM support_canned_responses 
+FROM support_canned_responses
 WHERE group_id > 0;
 UPDATE groups SET patch_due_period='2592000' WHERE patch_due_period is null;
-INSERT INTO artifact_group_list  
+INSERT INTO artifact_group_list
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+300000,group_id,'Patches','Patch Tracking System',use_patch,
-1,send_all_patches,new_patch_address,patch_due_period,1,3 
-FROM groups  
+1,send_all_patches,new_patch_address,patch_due_period,1,3
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 INSERT INTO artifact_perm
@@ -493,7 +493,7 @@
 INSERT INTO artifact_file
 (artifact_id,description,bin_data,filename,filesize,filetype,adddate,submitted_by)
 SELECT patch_id+300000,'None',code,'None',length(code),'text/plain',open_date,submitted_by
-FROM patch 
+FROM patch
 WHERE code IS NOT NULL;
 
 INSERT INTO artifact_counts_agg
@@ -506,15 +506,15 @@
 (group_artifact_id,group_id,name,description,is_public,
 allow_anon,email_all_updates,email_address,due_period,use_resolution,datatype)
 SELECT group_id+350000,group_id,'Feature Requests','Feature Request Tracking System',1,
-1,0,'',45*24*60*60,0,4 
-FROM groups  
+1,0,'',45*24*60*60,0,4
+FROM groups
 WHERE status != 'I' AND status != 'P'
 ORDER BY group_id ASC;
 
------ 
+-----
 -- Roland Mas 20020307 and 20020308
 -- Drop and recreate the groups and users tables.
--- Goals: 
+-- Goals:
 -- 1. Remove the dead columns (in groups)
 -- 2. Get rid of the undeleteable foreign key constraints with old tables
 
@@ -600,12 +600,12 @@
 	"language" integer DEFAULT '1' NOT NULL,
 	CONSTRAINT "users_pkey" PRIMARY KEY ("user_id")
 );
-CREATE VIEW artifactperm_user_vw AS 
+CREATE VIEW artifactperm_user_vw AS
 SELECT ap.id, ap.group_artifact_id, ap.user_id, ap.perm_level, users.user_name, users.realname
-	FROM artifact_perm ap, users 
+	FROM artifact_perm ap, users
 	WHERE users.user_id=ap.user_id;
 CREATE VIEW artifact_vw AS
-SELECT 
+SELECT
 artifact.*,
 u.user_name AS assigned_unixname,
 u.realname AS assigned_realname,
@@ -613,32 +613,32 @@
 u2.user_name AS submitted_unixname,
 u2.realname AS submitted_realname,
 u2.email AS submitted_email,
-artifact_status.status_name, 
-artifact_category.category_name, 
-artifact_group.group_name, 
-artifact_resolution.resolution_name 
-FROM 
+artifact_status.status_name,
+artifact_category.category_name,
+artifact_group.group_name,
+artifact_resolution.resolution_name
+FROM
 users u, users u2, artifact, artifact_status, artifact_category, artifact_group, artifact_resolution
-WHERE 
+WHERE
 artifact.assigned_to=u.user_id
 AND artifact.submitted_by=u2.user_id
-AND artifact.status_id=artifact_status.id 
-AND artifact.category_id=artifact_category.id 
+AND artifact.status_id=artifact_status.id
+AND artifact.category_id=artifact_category.id
 AND artifact.artifact_group_id=artifact_group.id
 AND artifact.resolution_id=artifact_resolution.id;
 CREATE VIEW artifact_history_user_vw AS
-SELECT ah.id, ah.artifact_id, ah.field_name, ah.old_value, ah.entrydate, users.user_name 
-FROM artifact_history ah, users 
-WHERE ah.mod_by=users.user_id; 
+SELECT ah.id, ah.artifact_id, ah.field_name, ah.old_value, ah.entrydate, users.user_name
+FROM artifact_history ah, users
+WHERE ah.mod_by=users.user_id;
 CREATE VIEW artifact_file_user_vw AS
-SELECT af.id, af.artifact_id, af.description, af.bin_data, af.filename, af.filesize, af.filetype, 
+SELECT af.id, af.artifact_id, af.description, af.bin_data, af.filename, af.filesize, af.filetype,
 	af.adddate, af.submitted_by, users.user_name, users.realname
-FROM artifact_file af,users 
+FROM artifact_file af,users
 WHERE af.submitted_by=users.user_id;
 CREATE VIEW artifact_message_user_vw AS
-SELECT am.id, am.artifact_id, am.from_email, am.body, am.adddate, 
+SELECT am.id, am.artifact_id, am.from_email, am.body, am.adddate,
 users.user_id, users.email, users.user_name, users.realname
-FROM artifact_message am,users 
+FROM artifact_message am,users
 WHERE am.submitted_by=users.user_id;
 
 INSERT INTO users
@@ -669,13 +669,13 @@
 -----
 
 -- artifact-fkeys
-DELETE from artifact_perm 
-	where not exists (select group_artifact_id 
-	from artifact_group_list 
+DELETE from artifact_perm
+	where not exists (select group_artifact_id
+	from artifact_group_list
 	where artifact_perm.group_artifact_id=artifact_group_list.group_artifact_id);
-ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_userid_fk 
+ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_userid_fk
         FOREIGN KEY (user_id) REFERENCES users(user_id) MATCH FULL;
-ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_groupartifactid_fk 
+ALTER TABLE artifact_perm ADD CONSTRAINT artifactperm_groupartifactid_fk
         FOREIGN KEY (group_artifact_id) REFERENCES artifact_group_list(group_artifact_id) MATCH FULL;
 
 ALTER TABLE artifact_category ADD CONSTRAINT artifactcategory_autoassignto_fk
@@ -791,7 +791,7 @@
         INSERT INTO forum_agg_msg_count (group_forum_id,count) \
                 VALUES (NEW.group_forum_id,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 CREATE TRIGGER forumgrouplist_insert_trig AFTER INSERT ON forum_group_list
         FOR EACH ROW EXECUTE PROCEDURE forumgrouplist_insert_agg();
@@ -809,14 +809,14 @@
 	INSERT INTO artifact_counts_agg (group_artifact_id,count,open_count) \
 		VALUES (NEW.group_artifact_id,0,0);
         RETURN NEW;
-END;    
+END;
 ' LANGUAGE 'plpgsql';
 
 CREATE TRIGGER artifactgrouplist_insert_trig AFTER INSERT ON artifact_group_list
         FOR EACH ROW EXECUTE PROCEDURE artifactgrouplist_insert_agg();
 CREATE RULE artifact_insert_agg AS
 	ON INSERT TO artifact
-	DO UPDATE artifact_counts_agg SET count=count+1,open_count=open_count+1 
+	DO UPDATE artifact_counts_agg SET count=count+1,open_count=open_count+1
 		WHERE group_artifact_id=new.group_artifact_id;
 -- drop TRIGGER artifactgroup_update_trig ON artifact;
 -- drop function artifactgroup_update_agg();
@@ -838,7 +838,7 @@
 		--
 		--	now see how to increment/decrement the old types sums
 		--
-		IF NEW.status_id <> OLD.status_id THEN 
+		IF NEW.status_id <> OLD.status_id THEN
 			IF OLD.status_id = 2 THEN
 				UPDATE artifact_counts_agg SET count=count-1 \
 					WHERE group_artifact_id=OLD.group_artifact_id;
@@ -855,25 +855,25 @@
 		END IF;
 	ELSE
 		--
-		-- just need to evaluate the status flag and 
+		-- just need to evaluate the status flag and
 		-- increment/decrement the counter as necessary
 		--
 		IF NEW.status_id <> OLD.status_id THEN
 			IF new.status_id = 1 THEN
 				UPDATE artifact_counts_agg SET open_count=open_count+1 \
 					WHERE group_artifact_id=new.group_artifact_id;
-			ELSE 
+			ELSE
 				IF new.status_id = 2 THEN
 					UPDATE artifact_counts_agg SET open_count=open_count-1 \
 						WHERE group_artifact_id=new.group_artifact_id;
-				ELSE 
+				ELSE
 					IF new.status_id = 3 THEN
 						UPDATE artifact_counts_agg SET open_count=open_count-1,count=count-1 \
 							WHERE group_artifact_id=new.group_artifact_id;
 					END IF;
 				END IF;
 			END IF;
-		END IF;	
+		END IF;
 	END IF;
 	RETURN NEW;
 END;
@@ -936,9 +936,9 @@
 -- copy stats_project_metric from '/tmp/stats_project_metric.dump';
 CREATE UNIQUE INDEX statsprojectmetric_month_day_group ON stats_project_metric(month,day,group_id);
 CREATE TABLE stats_agg_site_by_group_tmp AS
-SELECT 
-	substring(day::text from 1 for 6)::int AS month, 
-	substring(day::text from 7 for 2)::int AS day, 
+SELECT
+	substring(day::text from 1 for 6)::int AS month,
+	substring(day::text from 7 for 2)::int AS day,
 	group_id,
 	count
 	from stats_agg_site_by_group ;
@@ -950,11 +950,11 @@
 
 CREATE UNIQUE INDEX statssitebygroup_month_day_group ON stats_agg_site_by_group(month,day,group_id);
 CREATE TABLE stats_agg_logo_by_group_tmp AS
-SELECT	   
+SELECT
 	substring(day::text from 1 for 6)::int AS month,
 	substring(day::text from 7 for 2)::int AS day,
 	group_id,
-	count 
+	count
 	from stats_agg_logo_by_group ;
 
 DROP TABLE stats_agg_logo_by_group;
@@ -968,7 +968,7 @@
 pages INT NOT NULL DEFAULT 0
 );
 INSERT INTO stats_subd_pages
-SELECT month,day,group_id,subdomain_views 
+SELECT month,day,group_id,subdomain_views
 FROM stats_project WHERE subdomain_views > 0;
 
 CREATE UNIQUE INDEX statssubdpages_month_day_group ON stats_subd_pages(month,day,group_id);
@@ -991,11 +991,11 @@
 commits INT NOT NULL DEFAULT 0,
 adds INT NOT NULL DEFAULT 0
 );
-INSERT INTO stats_cvs_group 
-SELECT month,day,group_id,cvs_checkouts,cvs_commits,cvs_adds 
-FROM stats_project 
-WHERE cvs_checkouts > 0 
-OR cvs_commits > 0 
+INSERT INTO stats_cvs_group
+SELECT month,day,group_id,cvs_checkouts,cvs_commits,cvs_adds
+FROM stats_project
+WHERE cvs_checkouts > 0
+OR cvs_commits > 0
 OR cvs_adds > 0;
 
 CREATE UNIQUE INDEX statscvsgroup_month_day_group ON stats_cvs_group(month,day,group_id);
@@ -1035,8 +1035,8 @@
 );
 -- copy stats_project from '/tmp/stats_project.dump';
 CREATE UNIQUE INDEX statsproject_month_day_group ON stats_project(month,day,group_id);
-CREATE TABLE stats_site_tmp AS 
-SELECT month,day,uniq_users,sessions,total_users,new_users,new_projects 
+CREATE TABLE stats_site_tmp AS
+SELECT month,day,uniq_users,sessions,total_users,new_users,new_projects
 FROM stats_site;
 
 DROP TABLE stats_site;

Modified: trunk/src/deb-specific/view_bug.sql
===================================================================
--- trunk/src/deb-specific/view_bug.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/deb-specific/view_bug.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,5 +1,5 @@
 DROP VIEW bug;
-CREATE VIEW bug AS 
+CREATE VIEW bug AS
 	SELECT a.artifact_id AS bug_id,
 	g.group_id,
 	a.status_id,
@@ -11,8 +11,8 @@
 	a.summary,a.details,
 	a.close_date,
 	a.group_artifact_id AS bug_group_id,
-	a.resolution_id AS resolution 
-	FROM artifact a, groups g, artifact_group_list agl 
-	WHERE a.group_artifact_id=agl.group_artifact_id 
-	AND agl.group_id=g.group_id  
+	a.resolution_id AS resolution
+	FROM artifact a, groups g, artifact_group_list agl
+	WHERE a.group_artifact_id=agl.group_artifact_id
+	AND agl.group_id=g.group_id
 	AND agl.name='Bugs';

Modified: trunk/src/deb-specific/view_patch.sql
===================================================================
--- trunk/src/deb-specific/view_patch.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/deb-specific/view_patch.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,5 +1,5 @@
 DROP VIEW patch;
-CREATE VIEW patch AS 
+CREATE VIEW patch AS
 	SELECT a.artifact_id AS patch_id,
 	g.group_id,
 	a.status_id,
@@ -11,8 +11,8 @@
 	a.summary,a.details,
 	a.close_date,
 	a.group_artifact_id AS patch_group_id,
-	a.resolution_id AS resolution 
-	FROM artifact a, groups g, artifact_group_list agl 
-	WHERE a.group_artifact_id=agl.group_artifact_id 
-	AND agl.group_id=g.group_id  
+	a.resolution_id AS resolution
+	FROM artifact a, groups g, artifact_group_list agl
+	WHERE a.group_artifact_id=agl.group_artifact_id
+	AND agl.group_id=g.group_id
 	AND agl.name='Patches';

Modified: trunk/src/plugins/cvstracker/db/20050305.sql
===================================================================
--- trunk/src/plugins/cvstracker/db/20050305.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/cvstracker/db/20050305.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,7 +5,7 @@
 ALTER TABLE plugin_cvstracker_data_master ADD COLUMN cvs_date2 int4;
 ALTER TABLE plugin_cvstracker_data_master RENAME COLUMN cvs_date to dead1;
 ALTER TABLE plugin_cvstracker_data_master ALTER COLUMN dead1 DROP NOT NULL;
-ALTER TABLE plugin_cvstracker_data_master RENAME COLUMN cvs_date2 to cvs_date;                                   
+ALTER TABLE plugin_cvstracker_data_master RENAME COLUMN cvs_date2 to cvs_date;
 UPDATE plugin_cvstracker_data_master SET cvs_date=date_part('epoch', dead1);
 ALTER TABLE plugin_cvstracker_data_master ALTER COLUMN cvs_date SET NOT NULL;
 

Modified: trunk/src/plugins/cvstracker/db/cvstracker-init.sql
===================================================================
--- trunk/src/plugins/cvstracker/db/cvstracker-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/cvstracker/db/cvstracker-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -26,4 +26,4 @@
 	FOREIGN KEY (author) REFERENCES users (user_name)
 );
 
-CREATE INDEX plugin_cvstracker_group_artifact_id ON plugin_cvstracker_data_artifact USING btree (group_artifact_id);
\ No newline at end of file
+CREATE INDEX plugin_cvstracker_group_artifact_id ON plugin_cvstracker_data_artifact USING btree (group_artifact_id);

Modified: trunk/src/plugins/hudson/db/hudson-init.sql
===================================================================
--- trunk/src/plugins/hudson/db/hudson-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/hudson/db/hudson-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -5,7 +5,7 @@
     NO MINVALUE
     CACHE 1;
 CREATE TABLE plugin_hudson_job (
-  job_id INTEGER DEFAULT nextval('plugin_hudson_job_pk_seq'::text) NOT NULL, 
+  job_id INTEGER DEFAULT nextval('plugin_hudson_job_pk_seq'::text) NOT NULL,
   group_id INTEGER NOT NULL ,
   job_url character varying(255) NOT NULL ,
   name character varying(128) NOT NULL ,

Modified: trunk/src/plugins/hudson/db/install.sql
===================================================================
--- trunk/src/plugins/hudson/db/install.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/hudson/db/install.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -32,35 +32,35 @@
     LIKE 'hudson');
 
 -- Create references and add them into every project
-INSERT INTO reference SET 
-    keyword='job', 
-    description='plugin_hudson:reference_job_desc_key', 
-    link='/plugins/hudson/?group_id=$group_id&action=view_job&job=$1', 
-    scope='S', 
+INSERT INTO reference SET
+    keyword='job',
+    description='plugin_hudson:reference_job_desc_key',
+    link='/plugins/hudson/?group_id=$group_id&action=view_job&job=$1',
+    scope='S',
     service_short_name='hudson',
     nature='hudson_job';
 INSERT INTO reference_group (reference_id, group_id, is_active)
 SELECT last_insert_id, group_id, 1
 FROM (SELECT LAST_INSERT_ID() as last_insert_id) AS R, groups;
-    
-INSERT INTO reference SET 
-    keyword='build', 
-    description='plugin_hudson:reference_build_desc_key', 
-    link='/plugins/hudson/?group_id=$group_id&action=view_build&job=$1&build=$2', 
-    scope='S', 
+
+INSERT INTO reference SET
+    keyword='build',
+    description='plugin_hudson:reference_build_desc_key',
+    link='/plugins/hudson/?group_id=$group_id&action=view_build&job=$1&build=$2',
+    scope='S',
     service_short_name='hudson',
     nature='hudson_build';
 INSERT INTO reference_group (reference_id, group_id, is_active)
 SELECT last_insert_id, group_id, 1
 FROM (SELECT LAST_INSERT_ID() as last_insert_id) AS R, groups;
 
-INSERT INTO reference SET 
-    keyword='build', 
-    description='plugin_hudson:reference_build_desc_key', 
-    link='/plugins/hudson/?group_id=$group_id&action=view_build&build=$1', 
-    scope='S', 
+INSERT INTO reference SET
+    keyword='build',
+    description='plugin_hudson:reference_build_desc_key',
+    link='/plugins/hudson/?group_id=$group_id&action=view_build&build=$1',
+    scope='S',
     service_short_name='hudson',
     nature='hudson_build';
 INSERT INTO reference_group (reference_id, group_id, is_active)
 SELECT last_insert_id, group_id, 1
-FROM (SELECT LAST_INSERT_ID() as last_insert_id) AS R, groups;    
\ No newline at end of file
+FROM (SELECT LAST_INSERT_ID() as last_insert_id) AS R, groups;

Modified: trunk/src/plugins/hudson/db/uninstall.sql
===================================================================
--- trunk/src/plugins/hudson/db/uninstall.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/hudson/db/uninstall.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -3,7 +3,7 @@
 DROP TABLE plugin_hudson_job;
 DROP TABLE plugin_hudson_widget;
 
-DELETE FROM reference_group 
+DELETE FROM reference_group
 WHERE reference_id IN (SELECT id FROM reference WHERE service_short_name='hudson');
 
 DELETE FROM reference WHERE service_short_name='hudson';

Modified: trunk/src/plugins/mantisbt/db/mantisbt-init.sql
===================================================================
--- trunk/src/plugins/mantisbt/db/mantisbt-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/mantisbt/db/mantisbt-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -20,4 +20,4 @@
 	url			character varying(255),
 	soap_user		character varying(255),
 	soap_password		character varying(255)
-);
\ No newline at end of file
+);

Modified: trunk/src/plugins/mediawiki/db/mediawiki-init.sql
===================================================================
--- trunk/src/plugins/mediawiki/db/mediawiki-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/mediawiki/db/mediawiki-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -3,4 +3,4 @@
 	iw_url     TEXT      NOT NULL,
 	iw_local   SMALLINT  NOT NULL,
 	iw_trans   SMALLINT  NOT NULL  DEFAULT 0
-);
\ No newline at end of file
+);

Modified: trunk/src/plugins/projects_hierarchy/db/projects_hierarchy-init.sql
===================================================================
--- trunk/src/plugins/projects_hierarchy/db/projects_hierarchy-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/projects_hierarchy/db/projects_hierarchy-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -17,4 +17,4 @@
 	status boolean DEFAULT false
 );
 
-INSERT INTO plugin_projects_hierarchy_global (tree) values (true);
\ No newline at end of file
+INSERT INTO plugin_projects_hierarchy_global (tree) values (true);

Modified: trunk/src/plugins/quota_management/db/quota_management-init.sql
===================================================================
--- trunk/src/plugins/quota_management/db/quota_management-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/quota_management/db/quota_management-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -14,4 +14,4 @@
 ALTER TABLE groups ADD COLUMN quota_hard int;
 ALTER TABLE groups ALTER COLUMN quota_hard SET DEFAULT 0;
 UPDATE groups SET quota_soft=0;
-UPDATE groups SET quota_hard=0;
\ No newline at end of file
+UPDATE groups SET quota_hard=0;

Modified: trunk/src/plugins/scmhook/db/scmhook-init.sql
===================================================================
--- trunk/src/plugins/scmhook/db/scmhook-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/scmhook/db/scmhook-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -21,4 +21,4 @@
 	prev_version	text DEFAULT '',
 	actual_version	text DEFAULT '',
 	author		text DEFAULT '' NOT NULL
-);
\ No newline at end of file
+);

Modified: trunk/src/plugins/svntracker/db/20051011.sql
===================================================================
--- trunk/src/plugins/svntracker/db/20051011.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/svntracker/db/20051011.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -3,7 +3,7 @@
 ALTER TABLE plugin_svntracker_data_master ADD COLUMN svn_date2 int4;
 ALTER TABLE plugin_svntracker_data_master RENAME COLUMN svn_date to dead1;
 ALTER TABLE plugin_svntracker_data_master ALTER COLUMN dead1 DROP NOT NULL;
-ALTER TABLE plugin_svntracker_data_master RENAME COLUMN svn_date2 to svn_date;                                   
+ALTER TABLE plugin_svntracker_data_master RENAME COLUMN svn_date2 to svn_date;
 UPDATE plugin_svntracker_data_master SET svn_date=date_part('epoch', dead1);
 ALTER TABLE plugin_svntracker_data_master ALTER COLUMN svn_date SET NOT NULL;
 
@@ -16,4 +16,4 @@
 ALTER TABLE plugin_svntracker_data_master DROP COLUMN svn_date;
 ALTER TABLE plugin_svntracker_data_master ADD COLUMN svn_date int;
 UPDATE plugin_svntracker_data_master SET svn_date=extract(epoch from now());
-ALTER TABLE plugin_svntracker_data_master ALTER COLUMN svn_date SET NOT NULL;
\ No newline at end of file
+ALTER TABLE plugin_svntracker_data_master ALTER COLUMN svn_date SET NOT NULL;

Modified: trunk/src/plugins/wiki/db/wiki-init.sql
===================================================================
--- trunk/src/plugins/wiki/db/wiki-init.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/db/wiki-init.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -196,12 +196,12 @@
     AS $_$
 DELETE FROM plugin_wiki_recent WHERE id = $1;
 INSERT INTO plugin_wiki_recent (id, latestversion, latestmajor, latestminor)
-  SELECT id, MAX(version) AS latestversion, 
-	     MAX(CASE WHEN minor_edit =  0 THEN version END) AS latestmajor, 
+  SELECT id, MAX(version) AS latestversion,
+	     MAX(CASE WHEN minor_edit =  0 THEN version END) AS latestmajor,
              MAX(CASE WHEN minor_edit <> 0 THEN version END) AS latestminor
     FROM plugin_wiki_version WHERE id = $2 GROUP BY id;
 DELETE FROM plugin_wiki_nonempty WHERE id = $1;
-INSERT INTO plugin_wiki_nonempty (id) 
+INSERT INTO plugin_wiki_nonempty (id)
   SELECT plugin_wiki_recent.id
     FROM plugin_wiki_recent, plugin_wiki_version
     WHERE plugin_wiki_recent.id = plugin_wiki_version.id

Modified: trunk/src/plugins/wiki/www/schemas/mssql-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/mssql-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/mssql-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -53,7 +53,7 @@
 CREATE INDEX sessip_index ON session (sess_ip);
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 CREATE TABLE pref (
@@ -69,7 +69,7 @@
 -- ALTER TABLE pref ADD groupname CHAR(48) BINARY DEFAULT 'users';
 
 -- deprecated since 1.3.12. only useful for seperate databases.
--- better use the extra pref table where such users can be created easily 
+-- better use the extra pref table where such users can be created easily
 -- without password.
 --CREATE TABLE user (
 --  	userid 	CHAR(48) NOT NULL,
@@ -116,7 +116,7 @@
 	request_time  CHAR(28),
 	status 	      SMALLINT UNSIGNED,
 	bytes_sent    SMALLINT UNSIGNED,
-        referer       VARCHAR(255), 
+        referer       VARCHAR(255),
 	agent         VARCHAR(255),
 	request_duration FLOAT
 );

Modified: trunk/src/plugins/wiki/www/schemas/mysql-1_3_11.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/mysql-1_3_11.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/mysql-1_3_11.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -16,7 +16,7 @@
 	request_time  char(28),
 	status 	      smallint unsigned,
 	bytes_sent    smallint unsigned,
-        referer       varchar(255), 
+        referer       varchar(255),
 	agent         varchar(255),
 	request_duration float
 );
@@ -27,4 +27,4 @@
 ALTER TABLE page ADD cached_html MEDIUMBLOB;
 
 -- support ipv6
-ALTER TABLE session CHANGE sess_ip sess_ip CHAR(40) NOT NULL;
\ No newline at end of file
+ALTER TABLE session CHANGE sess_ip sess_ip CHAR(40) NOT NULL;

Modified: trunk/src/plugins/wiki/www/schemas/mysql-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/mysql-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/mysql-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -3,7 +3,7 @@
 CREATE TABLE page (
 	id              INT NOT NULL AUTO_INCREMENT,
 -- for mysql => 4.1 define the charset here
--- this is esp. needed for mysql 4.1.0 up to 4.1.6. 
+-- this is esp. needed for mysql 4.1.0 up to 4.1.6.
 -- not yet confirmed, at least since 4.1.8 it's okay with binary.
 --      pagename        VARCHAR(100) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
 -- otherwise use the old syntax to do case-sensitive comparison
@@ -68,7 +68,7 @@
 -- ALTER TABLE session CHANGE sess_ip sess_ip CHAR(40) NOT NULL;
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 CREATE TABLE pref (
@@ -85,7 +85,7 @@
 -- ALTER TABLE pref ADD groupname CHAR(48) BINARY DEFAULT 'users';
 
 -- deprecated since 1.3.12. only useful for seperate databases.
--- better use the extra pref table where such users can be created easily 
+-- better use the extra pref table where such users can be created easily
 -- without password.
 
 -- CREATE TABLE user (
@@ -140,7 +140,7 @@
 	request_time  CHAR(28),
 	status 	      SMALLINT UNSIGNED,
 	bytes_sent    SMALLINT UNSIGNED,
-        referer       VARCHAR(255), 
+        referer       VARCHAR(255),
 	agent         VARCHAR(255),
 	request_duration FLOAT
 );

Modified: trunk/src/plugins/wiki/www/schemas/oci8-destroy.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/oci8-destroy.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/oci8-destroy.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -9,7 +9,7 @@
 -- You should set this to the same value you specify for
 -- $DBParams['prefix'] in index.php.
 --
--- You have to use a prefix, because some phpWiki tablenames are 
+-- You have to use a prefix, because some phpWiki tablenames are
 -- Oracle reserved words!
 
 define prefix=phpwiki_
@@ -22,19 +22,19 @@
 
 --================================================================
 -- Note on Oracle datatypes...
--- 
--- Most of the 'NOT NULL' constraints on the character columns have been 
--- 	dropped since they can contain empty strings which are seen by 
+--
+-- Most of the 'NOT NULL' constraints on the character columns have been
+-- 	dropped since they can contain empty strings which are seen by
 --	Oracle as NULL.
 -- Oracle CLOBs are used for TEXTs/MEDUIMTEXTs columns.
 
 
 prompt Initializing PhpWiki tables with:
 prompt        prefix =  &prefix
-prompt 
+prompt
 prompt Expect some 'ORA-00942: table or view does not exist' unless you are
 prompt overwriting existing tables.
-prompt 
+prompt
 
 define page_tbl=&prefix.page
 define version_tbl=&prefix.version
@@ -67,13 +67,13 @@
 DROP TABLE &session_tbl;
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 prompt Dropping &pref_tbl
 DROP TABLE &pref_tbl;
 
--- better use the extra pref table where such users can be created easily 
+-- better use the extra pref table where such users can be created easily
 -- without password.
 
 prompt Dropping &user_tbl

Modified: trunk/src/plugins/wiki/www/schemas/oci8-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/oci8-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/oci8-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -9,7 +9,7 @@
 -- You should set this to the same value you specify for
 -- DATABASE_PREFIX in config.ini
 --
--- You have to use a prefix, because some phpWiki tablenames are 
+-- You have to use a prefix, because some phpWiki tablenames are
 -- Oracle reserved words!
 
 define prefix=phpwiki_
@@ -22,19 +22,19 @@
 
 --================================================================
 -- Note on Oracle datatypes...
--- 
--- Most of the 'NOT NULL' constraints on the character columns have been 
--- 	dropped since they can contain empty strings which are seen by 
+--
+-- Most of the 'NOT NULL' constraints on the character columns have been
+-- 	dropped since they can contain empty strings which are seen by
 --	Oracle as NULL.
 -- Oracle CLOBs are used for TEXTs/MEDUIMTEXTs columns.
 
 
 prompt Initializing PhpWiki tables with:
 prompt        prefix =  &prefix
-prompt 
+prompt
 prompt Expect some 'ORA-00942: table or view does not exist' unless you are
 prompt overwriting existing tables.
-prompt 
+prompt
 
 define page_tbl=&prefix.page
 define page_id=&prefix.page_id
@@ -125,7 +125,7 @@
 CREATE TABLE &link_tbl (
         linkfrom	INT NOT NULL,
         linkto		INT NOT NULL,
-        relation  	INT 
+        relation  	INT
 );
 CREATE INDEX &link_from ON &link_tbl (linkfrom);
 CREATE INDEX &link_to   ON &link_tbl (linkto);
@@ -143,7 +143,7 @@
 CREATE INDEX &sess_ip   ON &session_tbl (sess_ip);
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 prompt Creating &pref_tbl
@@ -155,7 +155,7 @@
 	CONSTRAINT &pref_id PRIMARY KEY (userid)
 );
 
--- better use the extra pref table where such users can be created easily 
+-- better use the extra pref table where such users can be created easily
 -- without password.
 --prompt Creating &user_tbl
 --CREATE TABLE &user_tbl (
@@ -206,7 +206,7 @@
 	request_time  VARCHAR2(28),
 	status 	      NUMBER(4),
 	bytes_sent    NUMBER,
-        referer       VARCHAR(255), 
+        referer       VARCHAR(255),
 	agent         VARCHAR(255),
 	request_duration FLOAT
 );

Modified: trunk/src/plugins/wiki/www/schemas/psql-1_3_12.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/psql-1_3_12.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/psql-1_3_12.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -2,10 +2,10 @@
 
 \set QUIET
 
--- Init the database with: 
+-- Init the database with:
 -- $ /usr/sbin/createdb phpwiki
 -- $ /usr/sbin/createuser -S -R -d phpwiki # (see httpd_user below)
--- $ /usr/bin/psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql 
+-- $ /usr/bin/psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql
 -- $ /usr/bin/psql phpwiki < psql-initialize.sql
 
 --================================================================
@@ -77,7 +77,7 @@
 --================================================================
 \echo schema enhancements
 
-ALTER TABLE :page_tbl 
+ALTER TABLE :page_tbl
 	ALTER COLUMN id TYPE SERIAL /* PRIMARY KEY */,
         ALTER COLUMN pagename TYPE VARCHAR(100),
 	ALTER COLUMN pagename SET NOT NULL,
@@ -86,8 +86,8 @@
 ALTER TABLE :version_tbl
 	ALTER COLUMN id TYPE INT4,
         ADD FOREIGN KEY (id) REFERENCES :page_tbl ON DELETE CASCADE;
-ALTER TABLE :nonempty_tbl 
-	ALTER COLUMN id TYPE INT4, 
+ALTER TABLE :nonempty_tbl
+	ALTER COLUMN id TYPE INT4,
         ADD FOREIGN KEY (id) REFERENCES :page_tbl ON DELETE CASCADE;
 
 \echo Creating experimental page views (not yet used)
@@ -100,24 +100,24 @@
 CREATE VIEW curr_page AS
   SELECT P.id,P.pagename,P.hits,P.pagedata,P.cached_html,
 	 V.version,V.mtime,V.minor_edit,V.content,V.versiondata
-  FROM :page_tbl P 
+  FROM :page_tbl P
     JOIN :version_tbl V USING (id)
     JOIN :recent_tbl  R ON (V.id=R.id AND V.version=R.latestversion);
 
-ALTER TABLE :link_tbl 
+ALTER TABLE :link_tbl
 	ALTER COLUMN linkfrom TYPE INT4,
 	ALTER COLUMN linkto   TYPE INT4,
 	ADD COLUMN   relation INT4 REFERENCES :page_tbl (id) ON DELETE CASCADE,
         ADD FOREIGN KEY (linkfrom) REFERENCES :page_tbl (id) ON DELETE CASCADE,
         ADD FOREIGN KEY (linkto)   REFERENCES :page_tbl (id) ON DELETE CASCADE;
 CREATE INDEX :relation_idx ON :link_tbl (relation);
-ALTER TABLE :rating_tbl 
+ALTER TABLE :rating_tbl
 	ALTER COLUMN raterpage TYPE INT8,
 	ALTER COLUMN rateepage TYPE INT8,
         ADD FOREIGN KEY (raterpage) REFERENCES :page_tbl (id) ON DELETE CASCADE,
         ADD FOREIGN KEY (rateepage) REFERENCES :page_tbl (id) ON DELETE CASCADE;
-ALTER TABLE :member_tbl 
-	ALTER COLUMN userid TYPE CHAR(48), 
+ALTER TABLE :member_tbl
+	ALTER COLUMN userid TYPE CHAR(48),
 	ALTER COLUMN userid SET NOT NULL,
 	ADD FOREIGN KEY (userid) REFERENCES :pref_tbl;
 
@@ -129,10 +129,10 @@
 
 -- example of ISpell dictionary
 --   UPDATE pg_ts_dict SET dict_initoption='DictFile="/usr/local/share/ispell/russian.dict",
---     AffFile ="/usr/local/share/ispell/russian.aff", StopFile="/usr/local/share/ispell/russian.stop"' 
+--     AffFile ="/usr/local/share/ispell/russian.aff", StopFile="/usr/local/share/ispell/russian.stop"'
 --     WHERE dict_name='ispell_template';
 -- example of synonym dict
---   UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5; 
+--   UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5;
 
 GRANT SELECT ON pg_ts_dict, pg_ts_parser, pg_ts_cfg, pg_ts_cfgmap TO :httpd_user;
 ALTER TABLE :version_tbl ADD COLUMN idxFTI tsvector;
@@ -147,11 +147,11 @@
 
 \echo Initializing stored procedures
 
-CREATE OR REPLACE FUNCTION update_recent (id INT4, version INT4) 
+CREATE OR REPLACE FUNCTION update_recent (id INT4, version INT4)
 	RETURNS void AS '
 DELETE FROM recent  WHERE id=$1;
 INSERT INTO recent (id, latestversion, latestmajor, latestminor)
-  SELECT id, MAX(version), MAX(CASE WHEN minor_edit=0  THEN version END), 
+  SELECT id, MAX(version), MAX(CASE WHEN minor_edit=0  THEN version END),
 	                   MAX(CASE WHEN minor_edit<>0 THEN version END)
     FROM version WHERE id=$2 GROUP BY id;
 DELETE FROM nonempty WHERE id=$1;
@@ -164,7 +164,7 @@
           AND recent.id=$1;
 ' LANGUAGE SQL;
 
-CREATE OR REPLACE FUNCTION prepare_rename_page (oldid INT4, newid INT4) 
+CREATE OR REPLACE FUNCTION prepare_rename_page (oldid INT4, newid INT4)
         RETURNS void AS '
 DELETE FROM page     WHERE id=$2;
 DELETE FROM version  WHERE id=$2;

Modified: trunk/src/plugins/wiki/www/schemas/psql-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/psql-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/psql-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -19,7 +19,7 @@
 --
 -- NOTE: To be able to vacuum the tables from ordinary page requests
 --       :httpd_user must be the table owner.
---       To run autovacuum and disable page requests vacuums edit the 
+--       To run autovacuum and disable page requests vacuums edit the
 --       pqsql backend optimize method in lib/WikiDB/backend/*_psql.php
 --
 -- Commonly, connections from php are made under
@@ -36,7 +36,7 @@
 \set qprefix '\'' :prefix '\''
 \set qhttp_user '\'' :httpd_user '\''
 
-\echo At first init the database with: 
+\echo At first init the database with:
 \echo '$ createdb phpwiki'
 \echo '$ createuser -S -R -d ' :qhttp_user
 \echo '$ psql -U ' :qhttp_user ' phpwiki < /usr/share/pgsql/contrib/tsearch2.sql'
@@ -121,7 +121,7 @@
 	id		INT4 REFERENCES :page_tbl,
         version		INT4 NOT NULL,
 	mtime		INT4 NOT NULL,
--- FIXME: should use boolean, but that returns 't' or 'f'. not 0 or 1. 
+-- FIXME: should use boolean, but that returns 't' or 'f'. not 0 or 1.
 	minor_edit	INT2 DEFAULT 0,
 -- use bytea instead?
         content		TEXT NOT NULL DEFAULT '',
@@ -134,7 +134,7 @@
 \echo Creating :recent_tbl
 CREATE TABLE :recent_tbl (
 	id		INT4 REFERENCES :page_tbl,
-	latestversion	INT4, 
+	latestversion	INT4,
 	latestmajor	INT4,
 	latestminor	INT4,
 	FOREIGN KEY (id, latestversion) REFERENCES :version_tbl (id, version),
@@ -162,10 +162,10 @@
 CREATE TABLE :versiondata_tbl (
 	id	  INT4 NOT NULL,
 	version	  INT4 NOT NULL,
-	markup    INT2 DEFAULT 2, 
-	author    VARCHAR(48), 
-	author_id VARCHAR(48), 
-	pagetype  VARCHAR(20) DEFAULT 'wikitext', 
+	markup    INT2 DEFAULT 2,
+	author    VARCHAR(48),
+	author_id VARCHAR(48),
+	pagetype  VARCHAR(20) DEFAULT 'wikitext',
         rest	  TEXT NOT NULL DEFAULT '',
 	FOREIGN KEY (id, version) REFERENCES :version_tbl (id, version)
 );
@@ -173,7 +173,7 @@
 CREATE TABLE :pageperm_tbl (
 	id	 INT4 NOT NULL REFERENCES :page_tbl(id),
         -- view,edit,create,list,remove,change,dump
-	access   CHAR(12) NOT NULL, 
+	access   CHAR(12) NOT NULL,
 	groupname VARCHAR(48),
 	allowed  BOOLEAN
 );
@@ -181,16 +181,16 @@
 CREATE INDEX :pageperm_access_idx ON pageperm (access);
 
 -- \echo Creating experimental page views (not yet used)
--- 
+--
 -- nonempty versiondata
 -- CREATE VIEW :existing_page_view AS
 --   SELECT * FROM :page_tbl P INNER JOIN :nonempty_tbl N USING (id);
--- 
+--
 -- latest page version
 -- CREATE VIEW :curr_page_view AS
 --  SELECT P.id,P.pagename,P.hits,P.pagedata,P.cached_html,
 --	 V.version,V.mtime,V.minor_edit,V.content,V.versiondata
---  FROM :page_tbl P 
+--  FROM :page_tbl P
 --    JOIN :version_tbl V USING (id)
 --    JOIN :recent_tbl  R ON (V.id=R.id AND V.version=R.latestversion);
 
@@ -234,7 +234,7 @@
 CREATE INDEX :sess_ip_idx   ON :session_tbl (sess_ip);
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 \echo Creating :pref_tbl
@@ -250,7 +250,7 @@
 -- Use the member table, if you need it for n:m user-group relations,
 -- and adjust your DBAUTH_AUTH_ SQL statements.
 CREATE TABLE :member_tbl (
-	userid    CHAR(48) NOT NULL REFERENCES :pref_tbl, 
+	userid    CHAR(48) NOT NULL REFERENCES :pref_tbl,
 	groupname CHAR(48) NOT NULL DEFAULT 'users'
 );
 CREATE INDEX :member_id_idx    ON :member_tbl (userid);
@@ -272,7 +272,7 @@
 	request_time     CHAR(28),
 	status 	         INT2,
 	bytes_sent       INT4,
-        referer          VARCHAR(255), 
+        referer          VARCHAR(255),
 	agent            VARCHAR(255),
 	request_duration FLOAT
 );
@@ -284,12 +284,12 @@
 
 -- Use the tsearch2 fulltextsearch extension: (recommended) 7.4, 8.0, 8.1
 -- at first init it for the database:
--- $ psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql 
+-- $ psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql
 
 -- example of ISpell dictionary
 --   UPDATE pg_ts_dict SET dict_initoption='DictFile="/usr/local/share/ispell/russian.dict" ,AffFile ="/usr/local/share/ispell/russian.aff", StopFile="/usr/local/share/ispell/russian.stop"' WHERE dict_name='ispell_template';
 -- example of synonym dict
---   UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5; 
+--   UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5;
 
 \echo Initializing tsearch2 indices
 GRANT SELECT ON pg_ts_dict, pg_ts_parser, pg_ts_cfg, pg_ts_cfgmap TO :httpd_user;
@@ -307,7 +307,7 @@
 
 --================================================================
 
-\echo You might want to ignore the following errors or run 
+\echo You might want to ignore the following errors or run
 \echo /usr/sbin/createuser -S -R -d  :httpd_user
 
 \echo Applying permissions for role :httpd_user
@@ -331,16 +331,16 @@
 \echo Initializing stored procedures
 
 -- id, version
-CREATE OR REPLACE FUNCTION :update_recent_fn (INT4, INT4) 
+CREATE OR REPLACE FUNCTION :update_recent_fn (INT4, INT4)
 	RETURNS integer AS $$
 DELETE FROM recent WHERE id = $1;
 INSERT INTO recent (id, latestversion, latestmajor, latestminor)
-  SELECT id, MAX(version) AS latestversion, 
-	     MAX(CASE WHEN minor_edit =  0 THEN version END) AS latestmajor, 
+  SELECT id, MAX(version) AS latestversion,
+	     MAX(CASE WHEN minor_edit =  0 THEN version END) AS latestmajor,
              MAX(CASE WHEN minor_edit <> 0 THEN version END) AS latestminor
     FROM version WHERE id = $2 GROUP BY id;
 DELETE FROM nonempty WHERE id = $1;
-INSERT INTO nonempty (id) 
+INSERT INTO nonempty (id)
   SELECT recent.id
     FROM recent, version
     WHERE recent.id = version.id
@@ -351,7 +351,7 @@
 $$ LANGUAGE SQL;
 
 -- oldid, newid
-CREATE OR REPLACE FUNCTION :prepare_rename_fn (INT4, INT4) 
+CREATE OR REPLACE FUNCTION :prepare_rename_fn (INT4, INT4)
         RETURNS void AS $$
 DELETE FROM page     WHERE id = $2;
 DELETE FROM version  WHERE id = $2;

Modified: trunk/src/plugins/wiki/www/schemas/psql-tsearch2.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/psql-tsearch2.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/psql-tsearch2.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,7 +1,7 @@
 -- $Id: psql-tsearch2.sql 6203 2008-08-26 13:23:56Z vargenau $
 -- use the tsearch2 fulltextsearch extension: (recommended)
 --   7.4, 8.0, 8.1
--- $ psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql 
+-- $ psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql
 
 \set QUIET
 \set prefix 	''
@@ -10,7 +10,7 @@
 --example of ISpell dictionary:
 -- UPDATE pg_ts_dict SET dict_initoption='DictFile="/usr/local/share/ispell/russian.dict" ,AffFile ="/usr/local/share/ispell/russian.aff", StopFile="/usr/local/share/ispell/russian.stop"' WHERE dict_name='ispell_template';
 --example of synonym dict:
--- UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5; 
+-- UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5;
 
 -- this might be needed:
 -- see http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_Notes

Modified: trunk/src/plugins/wiki/www/schemas/sqlite-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/sqlite-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/sqlite-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -51,7 +51,7 @@
 CREATE INDEX sessip_index ON session (sess_ip);
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 CREATE TABLE pref (
@@ -99,7 +99,7 @@
 	request_time  CHAR(28),
 	status 	      TINYINTEGER UNSIGNED,
 	bytes_sent    TINYINTEGER UNSIGNED,
-        referer       VARCHAR(255), 
+        referer       VARCHAR(255),
 	agent         VARCHAR(255),
 	request_duration FLOAT
 );

Modified: trunk/src/plugins/wiki/www/schemas/sqlsrv-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/schemas/sqlsrv-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/schemas/sqlsrv-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -71,7 +71,7 @@
 CREATE INDEX sessip_index ON session (sess_ip);
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 CREATE TABLE pref (
@@ -87,7 +87,7 @@
 -- ALTER TABLE pref ADD groupname CHAR(48) BINARY DEFAULT 'users';
 
 -- deprecated since 1.3.12. only useful for seperate databases.
--- better use the extra pref table where such users can be created easily 
+-- better use the extra pref table where such users can be created easily
 -- without password.
 --CREATE TABLE user (
 --  	userid 	CHAR(48) NOT NULL,
@@ -134,7 +134,7 @@
 	request_time  CHAR(28),
 	status 	      INT,
 	bytes_sent    INT,
-        referer       text, 
+        referer       text,
 	agent         text,
 	request_duration FLOAT
 );

Modified: trunk/src/plugins/wiki/www/tests/unit/mysql-test-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/tests/unit/mysql-test-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/tests/unit/mysql-test-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -76,7 +76,7 @@
 -- ALTER TABLE page CHANGE id id INT NOT NULL AUTO_INCREMENT;
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 CREATE TABLE test_pref (
@@ -85,7 +85,7 @@
   	PRIMARY KEY (userid)
 );
 
--- better use the extra pref table where such users can be created easily 
+-- better use the extra pref table where such users can be created easily
 -- without password.
 --CREATE TABLE test_user (
 --  	userid 	CHAR(48) BINARY NOT NULL UNIQUE,
@@ -120,7 +120,7 @@
 	request_time  char(28),
 	status 	      smallint unsigned,
 	bytes_sent    smallint unsigned,
-        referer       varchar(255), 
+        referer       varchar(255),
 	agent         varchar(255),
 	request_duration float
 );

Modified: trunk/src/plugins/wiki/www/tests/unit/psql-test-initialize.sql
===================================================================
--- trunk/src/plugins/wiki/www/tests/unit/psql-test-initialize.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/src/plugins/wiki/www/tests/unit/psql-test-initialize.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -106,7 +106,7 @@
 	id		INT4 REFERENCES :page_tbl,
         version		INT4 NOT NULL,
 	mtime		INT4 NOT NULL,
--- FIXME: should use boolean, but that returns 't' or 'f'. not 0 or 1. 
+-- FIXME: should use boolean, but that returns 't' or 'f'. not 0 or 1.
 	minor_edit	INT2 DEFAULT 0,
 -- use bytea instead?
         content		TEXT NOT NULL DEFAULT '',
@@ -119,7 +119,7 @@
 \echo Creating :recent_tbl
 CREATE TABLE :recent_tbl (
 	id		INT4 REFERENCES :page_tbl,
-	latestversion	INT4, 
+	latestversion	INT4,
 	latestmajor	INT4,
 	latestminor	INT4,
 	FOREIGN KEY (id, latestversion) REFERENCES :version_tbl (id, version),
@@ -147,10 +147,10 @@
 CREATE TABLE :versiondata_tbl (
 	id	  INT4 NOT NULL,
 	version	  INT4 NOT NULL,
-	markup    INT2 DEFAULT 2, 
-	author    VARCHAR(48), 
-	author_id VARCHAR(48), 
-	pagetype  VARCHAR(20) DEFAULT 'wikitext', 
+	markup    INT2 DEFAULT 2,
+	author    VARCHAR(48),
+	author_id VARCHAR(48),
+	pagetype  VARCHAR(20) DEFAULT 'wikitext',
         rest	  TEXT NOT NULL DEFAULT '',
 	FOREIGN KEY (id, version) REFERENCES :version_tbl (id, version)
 );
@@ -158,7 +158,7 @@
 CREATE TABLE :pageperm_tbl (
 	id	 INT4 NOT NULL REFERENCES :page_tbl(id),
         -- view,edit,create,list,remove,change,dump
-	access   CHAR(12) NOT NULL, 
+	access   CHAR(12) NOT NULL,
 	groupname VARCHAR(48),
 	allowed  BOOLEAN
 );
@@ -175,7 +175,7 @@
 CREATE VIEW :curr_page_view AS
   SELECT P.id,P.pagename,P.hits,P.pagedata,P.cached_html,
 	 V.version,V.mtime,V.minor_edit,V.content,V.versiondata
-  FROM :page_tbl P 
+  FROM :page_tbl P
     JOIN :version_tbl V USING (id)
     JOIN :recent_tbl  R ON (V.id=R.id AND V.version=R.latestversion);
 
@@ -219,7 +219,7 @@
 CREATE INDEX :sess_ip_idx   ON :session_tbl (sess_ip);
 
 -- Optional DB Auth and Prefs
--- For these tables below the default table prefix must be used 
+-- For these tables below the default table prefix must be used
 -- in the DBAuthParam SQL statements also.
 
 \echo Creating :pref_tbl
@@ -235,7 +235,7 @@
 -- Use the member table, if you need it for n:m user-group relations,
 -- and adjust your DBAUTH_AUTH_ SQL statements.
 CREATE TABLE :member_tbl (
-	userid    CHAR(48) NOT NULL REFERENCES :pref_tbl, 
+	userid    CHAR(48) NOT NULL REFERENCES :pref_tbl,
 	groupname CHAR(48) NOT NULL DEFAULT 'users'
 );
 CREATE INDEX :member_id_idx    ON :member_tbl (userid);
@@ -257,7 +257,7 @@
 	request_time     CHAR(28),
 	status 	         INT2,
 	bytes_sent       INT4,
-        referer          VARCHAR(255), 
+        referer          VARCHAR(255),
 	agent            VARCHAR(255),
 	request_duration FLOAT
 );
@@ -269,12 +269,12 @@
 
 -- Use the tsearch2 fulltextsearch extension: (recommended) 7.4, 8.0, 8.1
 -- at first init it for the database:
--- $ psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql 
+-- $ psql phpwiki < /usr/share/postgresql/contrib/tsearch2.sql
 
 -- example of ISpell dictionary
 --   UPDATE pg_ts_dict SET dict_initoption='DictFile="/usr/local/share/ispell/russian.dict" ,AffFile ="/usr/local/share/ispell/russian.aff", StopFile="/usr/local/share/ispell/russian.stop"' WHERE dict_name='ispell_template';
 -- example of synonym dict
---   UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5; 
+--   UPDATE pg_ts_dict SET dict_initoption='/usr/local/share/ispell/english.syn' WHERE dict_id=5;
 
 \echo Initializing tsearch2 indices
 GRANT SELECT ON pg_ts_dict, pg_ts_parser, pg_ts_cfg, pg_ts_cfgmap TO :httpd_user;
@@ -288,7 +288,7 @@
 
 --================================================================
 
-\echo You might want to ignore the following errors or run 
+\echo You might want to ignore the following errors or run
 \echo /usr/sbin/createuser -S -R -d  :httpd_user
 
 \echo Applying permissions for role :httpd_user
@@ -312,16 +312,16 @@
 \echo Initializing stored procedures
 
 -- id, version
-CREATE OR REPLACE FUNCTION :update_recent_fn (INT4, INT4) 
+CREATE OR REPLACE FUNCTION :update_recent_fn (INT4, INT4)
 	RETURNS integer AS $$
 DELETE FROM test_recent WHERE id = $1;
 INSERT INTO test_recent (id, latestversion, latestmajor, latestminor)
-  SELECT id, MAX(version) AS latestversion, 
-	     MAX(CASE WHEN minor_edit =  0 THEN version END) AS latestmajor, 
+  SELECT id, MAX(version) AS latestversion,
+	     MAX(CASE WHEN minor_edit =  0 THEN version END) AS latestmajor,
              MAX(CASE WHEN minor_edit <> 0 THEN version END) AS latestminor
     FROM test_version version WHERE id = $2 GROUP BY id;
 DELETE FROM test_nonempty WHERE id = $1;
-INSERT INTO test_nonempty (id) 
+INSERT INTO test_nonempty (id)
   SELECT recent.id
     FROM test_recent recent, test_version version
     WHERE recent.id = version.id
@@ -332,7 +332,7 @@
 $$ LANGUAGE SQL;
 
 -- oldid, newid
-CREATE OR REPLACE FUNCTION :prepare_rename_fn (INT4, INT4) 
+CREATE OR REPLACE FUNCTION :prepare_rename_fn (INT4, INT4)
         RETURNS void AS $$
 DELETE FROM test_page     WHERE id = $2;
 DELETE FROM test_version  WHERE id = $2;

Modified: trunk/tools/delete_deleted_group.sql
===================================================================
--- trunk/tools/delete_deleted_group.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/tools/delete_deleted_group.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,4 +1,4 @@
-delete from forum where group_forum_id in 
+delete from forum where group_forum_id in
 (select group_forum_id  from forum_group_list where group_id in
 	(select group_id from groups where status='D')
 );

Modified: trunk/tools/delete_deleted_user.sql
===================================================================
--- trunk/tools/delete_deleted_user.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/tools/delete_deleted_user.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,10 +1,10 @@
-delete from forum where posted_by in 
+delete from forum where posted_by in
 (select user_id  from users where status='D');
 
-delete from project_messages where posted_by in 
+delete from project_messages where posted_by in
 (select user_id  from users where status='D');
 
-delete from user_group where user_id in 
+delete from user_group where user_id in
 (select user_id  from users where status='D');
 
 delete from artifact_history where artifact_id in (select artifact_id from artifact where assigned_to in

Modified: trunk/tools/find_user_group_double.sql
===================================================================
--- trunk/tools/find_user_group_double.sql	2011-07-12 11:28:41 UTC (rev 13751)
+++ trunk/tools/find_user_group_double.sql	2011-07-12 11:39:59 UTC (rev 13752)
@@ -1,11 +1,11 @@
 -- select user_group.user_group_id,user_group.group_id,user_group.user_id
--- ,ug.user_group_id,ug.group_id, ug.user_id 
--- from user_group, user_group ug 
+-- ,ug.user_group_id,ug.group_id, ug.user_id
+-- from user_group, user_group ug
 -- where user_group.group_id=ug.group_id
 -- and user_group.user_id=ug.user_id
 -- and user_group.user_group_id != ug.user_group_id
 
-select user_group.* 
+select user_group.*
 from user_group, user_group ug
 where user_group.group_id=ug.group_id
 and user_group.user_id=ug.user_id




More information about the Fusionforge-commits mailing list