Day 2 begins! Day 1 notes here
https://technonaturalist.net/blog/2011/01/drupal-7-notes-dealing-ghost-fields
https://technonaturalist.net/comment/reply/43/1223 -- Comment from Jen Lampton Nov 2013 Running cron once doesn’t always do the trick. If it doesn’t work the first time, you may need to run cron 10 or 20 times to get the fields to actually be deleted. Its faster to just manually delete the two tables (field_data and field_revision) as well as the two records from field_instance and field_instance_config. Still not resolved as of the latest version of D7.
https://drupal.org/comment/5865292#comment-5865292
- Delete the records from field_config / field_config_instance
Staging DB 11:28am Sunday. Dev branch. Let's get a lay of the land as far as what needs to be deleted as is, without any changes. Feeling like there's a conflict because we deleted field_partners before purging the field_deleted tables, which is why it says "cannot rename."
Data tables:
Deleted tables:
First, disable apachesolr.
Ok, so there's two issues here, one more critical than the other.
#1 may be solvable by just deleting all previous traces of field_partners data.
I think #2 was coming into play because I was trying to delete field_partners to just re-do the whole thing as field_partners_fc.
So, all we've done so far is disable apachesolr. Let's see what happens on field_purge_batch, if we get errors.
it's taking a while.. and completed with no errors. let's try this again, to see if they actually get purged after 10-20 tries as per suggested here https://technonaturalist.net/comment/reply/43/1223
2nd time - much quicker. the tables all still exist
3rd time: quick. all tables are still there. still, i want to see if this will work at all. let's try `
taking a long while.
In the meantime, one thing that's bizarre is why Partner Copy/Value are fields in field_deleted_data_85. Also for field_deleted_data_87 -- that very much feels like it was created because of me deleting the field locally, and possibly apachesolr writing the datatable. for the same reason that the field_partners_fc data table exists (was never deployed to stage environment). FYI partners_fc datatable still exists as well. And no record of it in field_config or field_config_instance.
Ok,
Cron run successful.
Refresh tables in SequelPro and i still see the ghost tables. No dice. let's try to run cron again.
2nd drush cron
Cron run successful, much quicker. Tables still there.
3rd - still there.
4th- still there.
5th - still there
6th - still there.
Ok. Let's try field_purge_batch(10) for shits n gigs.
drush php-eval "field_purge_batch(10);"
quick. no they are still there.
fuck it, lets get up to 20.
7th cron - no
8 th
9th
10th
11th
12th
13th
This guy looks like the guy who actually takes care of cleanup -- field_sql_storage_field_storage_purge_field.
14th
15th