Hi there,

After an upgrade from D6 to D7 I find that there are 107 extra tables (and a couple of mismatches that I've already fixed) but I don't really know what to do with that.

I guess that if they are spare they could be deleted from the database, can they? Just to keep things cleaner and save database & back up space.

However I read this just before the list of extra tables;

Tables in the database that are not present in the schema. This indicates previously installed modules that are disabled but not un-installed or modules that do not use the Schema API.

I have un-installed all disabled modules (eventhough some of them were not able to un-install and had to simply delete them)

So, how can I know which tables I must keep and which ones I can get rid of?

Thanks

extra tables

CommentFileSizeAuthor
schemaextratables.jpg97.37 KBmanoloka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

manoloka’s picture

Looking into the tables seems that all the "field_deleted_data_#" and "field_deleted_revision_#" are tables that were created for the upgrade, most of them has no entries at all.

So I have deleted those ones and everything seems to work fines.

So, I still got 47 extra tables that a I'm not sure what to do with them.

Any suggestions?

jsibley’s picture

After upgrading from D6 to D7, I have a similar issue, with 105 tables that are listed as "extra".

Can we assume that tables that are considered core in D7 would not be listed as extra and that, therefore, tables listed in this report are either from D6 core (and no longer necessary) or from contributed modules?

If that's the case, is there any easy way to go from table name to modules that might use that table? Sometimes it seems obvious from the table name (e.g., creativecommons_node) and sometimes it is not obvious. If we can see that a table name belongs to a module that is no longer being used in D7, it might be a good candidate for being dropped (particularly, if there are 0 rows in the table).

Also, what is the risk that there are modules that haven't properly documented the tables they are using and that this could lead to necessary tables appearing in the extra tables report?

Thanks.

ronline’s picture

I have just dropped 244 extra tables and my site keep on going, so I would say : “Yes the extra tables is rubish and can be deleted”.

Stealth’s picture

Issue summary: View changes

I wont be using this module anymore I deleted the extra tables and it broke my site,I am fortunate that I backed up my data base before I deleted the extra tables.

greggles’s picture

Status: Active » Fixed

That's the kind of thing this module cannot tell for you, but that you have to decide for yourself.

And yes, any time you are going to delete things the first step should be to make a copy of them that you can restore if you need to.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.