Closed (fixed)
Project:
Path redirect
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2009 at 13:53 UTC
Updated:
9 Nov 2009 at 18:00 UTC
This happens after an upgrade to D6 if the module is not yet enabled, but the updates are running.
* user warning: Unknown column 'REQUEST_TIME' in 'field list' query: UPDATE path_redirect SET last_used = REQUEST_TIME in \sites\all\modules\path_redirect\path_redirect.install on line 171.
I believe the constant need to be moved from the path_redirect.module file to the .install file.
if (!defined('REQUEST_TIME')) {
define('REQUEST_TIME', time());
}
Comments
Comment #1
dave reidWait...why did the update run if the module was disabled? That shouldn't happen...
Comment #2
hass commentedThis happens since D6... it allows update.php to run updates for disabled modules... this is how D6 works :-). After the constant has been moved to the .install it works...
Comment #3
dave reidCommitted to CVS just using time() rather than loading the module in the install file.