Closed (fixed)
Project:
Path redirect
Version:
5.x-1.1-beta1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2007 at 04:01 UTC
Updated:
24 Nov 2007 at 19:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
HorsePunchKid commentedHere's a patch, if anyone would like to test this. It should only affect new installations. There may be some people who have installed it after update #2, so they have a database that no longer matches what update #2 intended. So maybe there needs to be an update #3 that checks the type of the
typecolumn and alters it if necessary.Comment #2
HorsePunchKid commentedAll that needs to happen in Postgres is:
ALTER TABLE {path_redirect} ALTER type TYPE smallint USING type::smallintThat's safe to run even if the conversion has already been done. I'll see about getting the equivalent working in MySQL, then roll a new patch with a new update function.
Comment #3
HorsePunchKid commentedHere's a patch with a new update method that should work for MySQL and Postgres.
Comment #4
HorsePunchKid commentedI committed this patch. This works with MySQL on a fresh install and when upgrading an existing install. The beta1 is somewhat broken for Postgres, so I have not tested it as thoroughly there. I will do so once fixes for Postgres are committed (next task for me).
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.