Closed (fixed)
Project:
View Unpublished
Version:
6.x-1.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2011 at 18:57 UTC
Updated:
24 Jan 2012 at 03:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
ryan_courtnage commentedpatch attached
Comment #2
ryan_courtnage commentedComment #3
hefox commentedGenerally issues with the original query, so piggy backing here.
1) queries done in updatedb should be done using the update_sql function http://api.drupal.org/api/drupal/includes--database.inc/function/update_... so users are informed what happened. Aka, leave the queries separate, but use $ret = array(); $ret[] = update_sql(" .. "); return $ret; instead there.
2) if someone has already customized their weight it gets overridden -- I had it at -2 to be compatible with space and that got overridden, so had to add another update in a custom module to re-fix it :(.
3) The _install is missing it's Implementation of hook_install().
Comment #4
hefox commentedHaven't tested yet, but here's a patch updated to comments above.
There's absolutely no need for an empty install TMK, btw. Updates run fine without it last I tried.
The update function numbering is wrong (000 is for updates of 5.x to 6.x), but all well, it's already run on a few sites, so didn't fix it.
Comment #5
hefox commentedComment #6
entendu commentedCorrect about update_sql().
I added that in an update because people already had the module installed w/o a hook_install().
Committed #4 to 6x-dev.
Comment #7
entendu commented