This is a space where the community of Teamwork users can ask for support, explanations,
and also vote up or down questions, answers and feature requests.
>> Back to Teamwork's site.

Here are all details to use Teamwork with a PostgreSQL database. These procedure is required for new Teamwork 4.7 installation and also for already running installation that has made the upgrade to the last Teamwork version.

asked Jul 05 '11 at 08:55

Silvia%20Chelazzi's gravatar image

Silvia Chelazzi ♦♦
403018

edited Jul 05 '11 at 10:56


Tests on PostgreSQL 8.3+ have shown that due to a change in default casting behavior, Teamwork’s database must be configured with:


CREATE FUNCTION int_to_text(INT4) RETURNS TEXT AS

'SELECT textin(int4out($1));'

LANGUAGE SQL STRICT IMMUTABLE;

CREATE CAST (INT4 AS TEXT)

WITH FUNCTION int_to_text(INT4) AS IMPLICIT;


If you are upgrading to Teamwork 4.7 probably you already have this function on your database as it was already required by previous Teamwork versions.

Once you have created this function on your Teamwork database you have to download the following zipped folder:

http://dl.open-lab.com/PostgreSql.zip

Unzip it and replace the files contained in this folder (you find instructions also there) in the following paths. Then restart the Teamwork service. Backup your Teamwork folder and your Teamwork database first as described here:

http://www.twproject.com/upgradeFaq.page#upg4

Here is the list of the files that needs to be replaced:

AuditLogRecord.class - > Your_Teamwork_Folder/webapps/ROOT/WEB-INF/classes/org/jblooming/logging

PersistentText.class - > Your_Teamwork_Folder/webapps/ROOT/WEB-INF/classes/org/jblooming/ontology

IssuePersistent.class -> Your_Teamwork_Folder/webapps/ROOT/WEB-INF/classes/com/twproject/task

IssueHistory.class - > Your_Teamwork_Folder/webapps/ROOT/WEB-INF/classes/com/twproject/task

DiscussionPoint.class -> Your_Teamwork_Folder/webapps/ROOT//WEB-INF/classes/com/twproject/meeting

ForumEntry.class - > Your_Teamwork_Folder/webapps/ROOT//WEB-INF/classes/com/opnlb/website/forum

This operation is needed to a known bug of the last final release of Hibernate (the one used by Teamwork): More details here:

http://opensource.atlassian.com/projects/hibernate/browse/HHH-6105

answered Jul 05 '11 at 09:06

Silvia%20Chelazzi's gravatar image

Silvia Chelazzi ♦♦
403018

edited Jul 05 '11 at 10:59

Can we proceed with an already working installation? Or that's meant just for a new/clean installation?

answered Jul 05 '11 at 10:35

Fulvio's gravatar image

Fulvio
11

This procedure is necessary for new Teamwork 4.7 installation and for all of those that have upgraded their Teamwork to the last release.

(Jul 05 '11 at 10:55) Silvia Chelazzi ♦♦

Ok Silvia, we figured out the problem about mail notifications (after the patch the EmailDispatcher job was deleted and we created it again). Now a lot of projects have been loaded in TW. We'd like to avoid any kind of uninstall and proceed just uploading the files. Is it possible?

(Jul 05 '11 at 17:01) Fulvio
1

You don't need to uninstall Teamwork to apply the above patch. just download the zip us described and replace the files in the correct paths.

(Jul 06 '11 at 03:11) Silvia Chelazzi ♦♦

On new Teamwork 4.7 installation on PostgreSql you may experiencing error trying to find issues. For example add an issue and then open the custom filter and try to search it with the description filter, this should generate an error. Following the procedure above you will need to do an additional operation to retrive the content of your issues. After the steps above in fact all your issues will contain a number. This number is the id of a largeobject saved in your Postgres database in the tables pg_largeobject in the catalog PostgreSql. In this table you will find the content of your issues. In that table are saved all the content of the issue.

answered Jul 05 '11 at 11:41

Silvia%20Chelazzi's gravatar image

Silvia Chelazzi ♦♦
403018

edited Jul 05 '11 at 11:42

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×6
×4
×2

Asked: Jul 05 '11 at 08:55

Seen: 660 times

Last updated: Jul 06 '11 at 03:11

| Teamwork faq | about | contact us | Teamwork blog | Teamwork documentation | feedback always welcome