Closed (fixed)
Project:
Paranoia
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2013 at 02:01 UTC
Updated:
27 Jun 2013 at 21:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jamesharv commentedPatch attached.
Comment #2
gregglesMakes sense to me.
Comment #3
gregglesHow about this style?
My theory is that someone might have watchdog enabled and then disable it and there's data in the table even if the module is not enabled.
Comment #4
gregglesComment #5
greggleshttp://drupalcode.org/project/paranoia.git/commit/e0992ea
Thanks, jamesharv!
Comment #6
gregglesTurns out that neither module_exists nor db_table_exists work because they are not yet included. Manually bootstrapping works.
http://drupalcode.org/project/paranoia.git/commit/80fc22e
Comment #7
rgristroph commentedI can confirm that without #6 "drush sql-sanitize" gives me an error, and with it, the sql-sanitize works. The error I get without that patch is:
PHP Fatal error: Call to undefined function db_table_exists() in /XXXXXX/docroot/sites/all/modules/contrib/paranoia/paranoia.drush.inc on line 27
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function db_table_exists() in
/XXXXXX/docroot/sites/all/modules/contrib/paranoia/paranoia.drush.inc,
line 27
I get that error using the 7.x-1.1 version of paranoia without the patch.
--Rob
Comment #8.0
(not verified) commentedUpdated issue summary.
Comment #9
gregglesTurns out I didn't actually commit the patch from #6.
Now actually done: http://drupalcode.org/project/paranoia.git/commit/480a372 Will make a new release.
Comment #10
gregglesNew release at https://drupal.org/node/2134277