Closed (fixed)
Project:
Settings audit log
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2012 at 17:21 UTC
Updated:
19 Aug 2012 at 01:13 UTC
Jump to comment: Most recent
Lines 44 & 45 in settings_audit_log.install are:
db_query("DROP settings_audit_log_variable_update_audit");
db_query("DROP settings_audit_log_variable_insert_audit");and they should be:
db_query("DROP TABLE settings_audit_log_user_db_connection");
db_query("DROP TABLE settings_audit_log_variable_audit_log");
Notice it said DROP instead of DROP TABLE, and the table names were wrong
and
db_query("DROP TRIGGER IF EXISTS settings_audit_log_variable_update_audit");
db_query("DROP TRIGGER IF EXISTS settings_audit_log_variable_insert_audit");needs to be added...
Comments
Comment #1
Anonymous (not verified) commentedthanks for the report.
Comment #2
Anonymous (not verified) commentedDrupal 7 automatically cleans up tables on uninstall, so we don't need to do that.
i've updated the trigger code to use "DROP TRIGGER IF EXISTS", thanks.
also, i noticed that db prefixing was missing for the triggers, so i fixed that. there is no upgrade path though, this will require manually removing the triggers, then uninstalling.
Comment #3.0
(not verified) commentedAdded two lines that need to be added