I've rewritten parts of the installer script to add PostgreSQL support.
Unfortunately this led to some complications, as PostgreSQL requires db_next_id()'s $name parameter to be in a certain format, namely: {table}_pkfield, in which they weren't. Solving this issue requires two things:
- a patch for workflow.module that corrects the bad namings, and
- an update hook for MySQL users to change the existing sequence names accordingly.
This post has the new installer script attached, making workflow.pgsql superfluous. The next one will contain the patch for workflow.module.
MySQL users must run the updater located at http://www.example.com/update.php after replacing workflow.install.
Comments
Comment #1
smk-ka commentedNote: rename workflow_1.install to workflow.install
The patch for workflow.module.
Comment #2
smk-ka commentedFound another bug, so forget nextid_fix.diff: Postgres doesn't understand
&&in a query, so you have to useAND.Comment #3
sammys commentedIt doesn't appear this has received any priority for inclusion into the module. I bump this up again so we can deal with it. smk-ka: Please supply the necessary changes to workflow.module and workflow.install in one single patch? I'll review the patch so we can get this included.
--
Sammy Spets
Synerger
http://www.synerger.com
Comment #4
sammys commentedI'm tying this issue along with http://drupal.org/node/31743 as there is a bug in the cvs version of the module preventing me from manipulating/creating transitions. I'm also bumping the status of this issue to patch (code needs work).
Cheers,
--
Sammy Spets
Synerger
http://www.synerger.com
Comment #5
smk-ka commentedThanks for taking the time, Sammy. Here you go:
Comment #6
jvandyk commentedI'd appreciate it if someone could test this, please.
Comment #7
sammys commentedPatch worked for me. It's good to go from my perspective.
Comment #8
jvandyk commentedCommitted. Thanks.
Comment #9
(not verified) commentedComment #10
jvandyk commentedNote: this patch was incorrect because update_sql does not support %s syntax. You must build the SQL string yourself if you're going to pass it to update_sql.
Comment #11
pearcec@drupal.org commentedWhen this file was updated during version 1.7 it didn't get the stamp field on workflow_node. I am adding a patch to fix it.
Comment #12
Tabbycat commentedworkflow_access.install has "unsigned" in the column definitions for grant_view, grant_update and grant_delete for the "pgsql" case so it errors for postgres - just needs "unsigned" removing from those lines.
Comment #13
smk-ka commentedNew patch includes #11 and fixes #12.
Comment #14
Bastlynn commentedHi,
With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.
- Bastlynn