Closed (fixed)
Project:
Migrate
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2009 at 20:36 UTC
Updated:
14 Jul 2010 at 17:40 UTC
I downloaded and enabled migrate 6.x-1.x-dev using drush with no previous version installed, and received this error (I trimed the db name and prefix) -
user warning: Table ...migrate_content_sets doesn't exist
query: SELECT * FROM drupal_migrate_content_sets in .../sites/all/modules/migrate/migrate.module on line 974.
Comments
Comment #1
moshe weitzman commentedbasically, module install/enable is very brittle. see http://drewish.com/node/134 where he talks about adding a module_enable() call. not sure what the solution is. this is a very common problem, and drush seems to make it worse.
Comment #2
mikeryanWhat makes migrate particularly brittle is that it has a schema_alter hook that queries the migrate_content_sets table. So, what's happening here is some other module's install hook is being called before migrate's, trying to install schema and thus invoking hook_schema_alter(), which fails because the migrate tables haven't been created yet.
The schema_alter() hook now checks for existence of the table, and returns silently if it's not there.
Comment #4
vunger commentedI'm having the same problem and I don't know how to fix it (other than creating the tables by hand? please no!) so I'm setting the status back to 'active'.
Comment #5
vunger commentedNever mind, it's fixed. Here's what I did: disabled Migrate, uninstalled it (in the Uninstall tab), then enabled it again.