Hi,
I get this message for all tables about content types when I run drush ms command:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'proXX_XXDrupal6.node_revision' doesn't exist: SELECT COUNT(*) AS expression
FROM
(SELECT 1 AS expression
FROM
{node_revision} nr
INNER JOIN {node} n ON n.nid = nr.nid AND n.vid <> nr.vid
WHERE ((n.tnid = 0 OR n.tnid = n.nid)) AND (n.type = :db_condition_placeholder_0)) subquery; Array
(
[:db_condition_placeholder_0] => page
)
In my db, I have a node_revisions table but not node_revision,
does it be a problem when performing migrations ?
could it be related with my link generator issue ?
how can I fix this issue ?
thanks
Comments
Comment #2
quietone commentedFirst some clarification, the node_revision table is in Drupal 7 and node_revisions is Drupal 6. When the `drush ms` command is run it tries to get a count of rows for all migrations discovered, and when migrate_drupal is enabled it will do that for Drupal 6 and Drupal 7 migrations. The result is errors for the migrations that are from the other Drupal version, the one that is not your database source.
Judging by the error and the prefix being used, "proXX_XXDrupal6", your source database if a Drupal 6 database. In that case, these errors are annoying but expected.
To answer your questions; They are not a problem when performing migrations. They are not related to the link generator issue. And to fix them you can use the tag option, `--tag=Drupal 6` and/or, if you are using migrate_plus the group option, `--group="some group name`.
Does that answer your questions?
Comment #3
aiphesgreat explantation. I understand better the migrate process. Thanks
Comment #4
quietone commented@aiphes, Your welcome.
Seems that the questions have been answered satisfactorily, so closing this.