Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: vunger commentedNever mind, it's fixed. Here's what I did: disabled Migrate, uninstalled it (in the Uninstall tab), then enabled it again.