Closed (works as designed)
Project:
TFA Basic plugins
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2015 at 20:58 UTC
Updated:
7 Jun 2019 at 13:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pjcdawkins commentedComment #2
pjcdawkins commentedThis should be for TFA Basic
Comment #3
coltraneHow about this? Also, @pjcdawkins do you know if this will work with prefixed tables?
Comment #4
coltraneWoops, #3 has a hanging character. Try this.
Comment #5
pjcdawkins commentedUnfortunately that's not going to work
I've created an issue for Drush here: https://github.com/drush-ops/drush/issues/1357
Comment #6
pjcdawkins commentedGreg Anderson has responded with a recommendation in the Drush issue
https://github.com/drush-ops/drush/issues/1357#issuecomment-97129724
It's a tricky solution to a relatively unimportant problem
Comment #7
gregglesI'd consider calling this "works as designed."
If it gets solved it should be solved in drush, IMO, since it affects all modules that implement sql_sync.
I think the "right" way to do this is with an update hook in a custom module on your dev site that enables tfa before the sanitize gets run.
Comment #8
pjcdawkins commentedI see your point but that "right way" would be pretty tricky, since a normal workflow is to sanitize as part of syncing, which is before updatedb runs.
And it's a bit anomalous that we are running SQL with no support for PDO etc. ... I could envision perhaps some improvements for Drush although I can see it's not going to be easy.
Comment #9
gregglesYes, but the sanitize should be run by a codebase that matches the live site which would mean it doesn't include tfa yet, right?
Comment #10
pjcdawkins commentedThe answer for these problems generally is probably:
instead of:
do:
Comment #11
gregglesYeah, that's one way. Also: http://www.knaddison.com/drupal/jenkins-drush-dropbox-easily-share-sanit... :)
Abbreviated:
On the server:
On your local:
Comment #12
fubarhouse commentedHere's a patch which will help anybody who still runs into this ancient issue.
Truncating tables should never be attempted when the module isn't installed and/or the tables aren't there.