Add installation script for PostgreSQL
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | userpoints.install-20070626.diff | 2.94 KB | tanjerine |
| #7 | userpoints.install-typoedited_0.diff | 2.93 KB | tanjerine |
| #6 | userpoints.install-typoedited.diff | 2.93 KB | tanjerine |
| #2 | userpoints.install_0.diff | 2.58 KB | ckg |
| userpoints.install.diff | 2.94 KB | ckg |
Comments
Comment #1
kbahey commentedPatch is not in the correct format.
Please use unidiff format.
See here for more http://drupal.org/patch
Comment #2
ckg commentedOkay... hope I got the patch right this time. Thanks for the pointer.
Comment #3
kbahey commentedCommitted to 5.x and HEAD.
Thanks.
Comment #4
kbahey commentedComment #5
(not verified) commentedComment #6
tanjerine commentedhi! im using this patch for my postgres/drupal installation and i noticed a typo in line 30 :
! approver_uid interger NOT NULL default '0',it should read:
! approver_uid integer NOT NULL default '0',this prevents the table from being created. im attaching the edited file with an edited filename for clarity. thanks!
Comment #7
tanjerine commentedmy bad. i forgot to mention that line 77 of the userpoints.install patch also needed to be edited. from:
+ case 'mysql':to:
+ case 'pgsql':Comment #8
kbahey commentedThe patch failed to apply.
Please download 5.x-2.11 (available in 12 hours), test the postgres changes in it first, then if there are issues, create a new patch against 2.11.
Check 2.11 here http://drupal.org/node/154482
Comment #9
tanjerine commentedSorry about that. Must have been something with the way the file was saved. Attaching the new patch for postgres. Please note though, that Im using this patch with version 4.7. But will try it with the 5.2 version (as you suggested) when it comes out.
this patch should work.
Comment #10
kbahey commentedStill fails.
$ patch --dry-run -p0 < u.patch
(Stripping trailing CRs from patch.)
patching file userpoints.install
Hunk #1 FAILED at 27.
Hunk #2 succeeded at 76 with fuzz 2 (offset -11 lines).
Hunk #3 succeeded at 121 with fuzz 2 (offset 3 lines).
1 out of 3 hunks FAILED -- saving rejects to file userpoints.install.rej
4.7 and 5.x are significantly different, and there is no way a postgres patch will work on both as is.
Comment #11
tanjerine commentedOh, i hadn't yet tested or tweaked the patch to work with 5.2. As i said earlier, I was using 4.7 and that patch works for 4.7 (downloaded the module again and ran the patch against it). Will try it with 5.2 when i am able to set it up on my machine.
Thanks.
Comment #12
mile235.x-3.7 has a PostreSQL installer.