Can I change node ids (nid) in mysql tables in order to update the IDs of the nodes in Drupal ?
In other terms, if I change the nid (paying attention to keep they unique for each node) in the ‘node’ table, directly from phpmyadmin, am I going to introduce bugs ?
thanks
The node id is used in a lot of places, so you have to be very careful doing something like that. It may very well lead to things breaking, like missing the content of the node which is stored elsewhere.
If the nodes are freshly imported it makes things less tricky, but it’s hard to be sure you get everything right. The problem is that you might only find the problem when it’s too late.
I believe that migrate creates some kind of join table when you import nodes, can that be used to match the node ids to the old ids?