When trying to uninstall s3 module:
Fatal error: Call to undefined function update_sql() in /home/hfckc260/public_html/sites/all/modules/media_mover/modules/mm_s3/mm_s3.install on line 45
This is a drop of a column:
/**
* Implements hook_uninstall().
*
* @return $ret
* Array
*/
function mm_s3_uninstall() {
$ret[] = update_sql("ALTER TABLE {files} DROP COLUMN s3_data");
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | media_mover-n1273846-2.patch | 1.6 KB | damienmckenna |
Comments
Comment #1
coderintherye commentedCalls to update_sql() are on lines 34 and 45 of the latest 7.x-dev
Obviously, update_sql() is a 6.x. function, not 7.x., use db_query instead.
I can roll a patch if necessary, but simply just replace those two calls to update_sql() with db_query();
Marking as critical because it prevents the enabling and use of the module.
Comment #2
damienmckennaThis should resolve the problem, though I've not tested it yet.