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

moshe weitzman’s picture

basically, 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.

mikeryan’s picture

Status: Active » Fixed

What 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.

Status: Fixed » Closed (fixed)

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

vunger’s picture

Status: Closed (fixed) » Active

I'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'.

vunger’s picture

Status: Active » Fixed

Never mind, it's fixed. Here's what I did: disabled Migrate, uninstalled it (in the Uninstall tab), then enabled it again.

Status: Fixed » Closed (fixed)

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